Fixed a bug

This commit is contained in:
Scisco
2014-08-29 17:02:03 -04:00
parent 5bbdaa8253
commit fa29bdfb9f
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ class GsHelper(object):
for line in scene:
url = line.split('/')
file_name = url[len(url) - 1]
f_query = (file_name[3:6], file_name[6:9])
f_query = [file_name[3:6], file_name[6:9]]
jd = int(file_name[13:16].lstrip('0')) # Julian Day
year = int(file_name[9:13])

View File

@@ -13,7 +13,7 @@ import sys
import errno
import shutil
import unittest
from tempfile import mkdtemp, mkstemp
from tempfile import mkdtemp
try:
from landsat.gs_helper import GsHelper
@@ -55,7 +55,7 @@ class TestGsHelper(unittest.TestCase):
# test a search with known result
query = '003,003'
start = '01/01/2014'
end = '01/06/2014'
end = '06/01/2014'
self.assertEqual(1, len(self.g.search(query, start, end)))