mirror of
https://github.com/Skyai-io/landsat-util.git
synced 2026-03-10 09:01:18 +00:00
Fixed a bug
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user