Skip to content

Commit 39b6e2e

Browse files
authored
Merge pull request #215 from developmentseed/bug/191-bands
Bug/191 bands
2 parents 1922979 + 544e493 commit 39b6e2e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

landsat/landsat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def args_options():
216216
help="Provide Full sceneID, e.g. LC81660392014196LGN00")
217217

218218
parser_download.add_argument('-b', '--bands', help='If you specify bands, landsat-util will try to download '
219-
'the band from S3. If the band does not exist, an error is returned', default='')
219+
'the band from S3. If the band does not exist, an error is returned', default=None)
220220
parser_download.add_argument('-d', '--dest', help='Destination path')
221221
parser_download.add_argument('-p', '--process', help='Process the image after download', action='store_true')
222222
parser_download.add_argument('--pansharpen', action='store_true',

tests/test_download.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_remote_file_size(self):
108108
url = self.d.google_storage_url(self.d.scene_interpreter(self.scene))
109109
size = self.d.get_remote_file_size(url)
110110

111-
self.assertEqual(self.scene_size, size)
111+
self.assertAlmostEqual(self.scene_size, size)
112112

113113
def test_google_storage_url(self):
114114
sat = self.d.scene_interpreter(self.scene)

tests/test_landsat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_download_correct_zip(self, mock_downloader):
109109
args = ['download', 'LC80010092015051LGN00', '-d', self.mock_path]
110110
output = landsat.main(self.parser.parse_args(args))
111111
mock_downloader.assert_called_with(download_dir=self.mock_path, usgs_pass=None, usgs_user=None)
112-
mock_downloader.return_value.download.assert_called_with(['LC80010092015051LGN00'], [])
112+
mock_downloader.return_value.download.assert_called_with(['LC80010092015051LGN00'], None)
113113
self.assertEquals(output, ['Download Completed', 0])
114114

115115
@mock.patch('landsat.landsat.process_image')

0 commit comments

Comments
 (0)