Skip to content

Commit 70e87e2

Browse files
committed
switch band indices in config to list
1 parent 5a6b306 commit 70e87e2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/parameters.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ Here is the full list of configuration parameters you can specify in a ``config.
7676
**band_count**: int
7777
An integret greater than 1. If not specified defaults to 3 for the typical r,g,b imagery.
7878

79-
**band_indicies**: tuple
80-
A tuple of band incidies to pull from a tiff. Defaults to (1, 2, 3) if not specified. For using non-RGB tifs, ie MS tifs this should be over-written
81-
for example to (5, 3, 2, 7) to extract Red, Green, Blue, and NIR bands from the MS spacenet imagery.
79+
**band_indicies**: list
80+
A list of band incidies to pull from a tiff. Defaults to (1, 2, 3) if not specified. For using non-RGB tifs, ie MS tifs this should be over-written
81+
for example to [5, 3, 2, 7] to extract Red, Green, Blue, and NIR bands from the MS spacenet imagery.

label_maker/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def get_tile_tif(tile, imagery, folder, kwargs):
146146

147147
try:
148148
kwargs['band_indicies']
149-
band_count = kwargs['band_indicies']
149+
band_count = tuple(kwargs['band_indicies'])
150150
except KeyError:
151151
band_indicies = (1, 2, 3)
152152

label_maker/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
'tms_image_format': {'type': 'string'},
3838
'over_zoom': {'type': 'integer', 'min': 1},
3939
'band_count': {'type': 'integer', 'min': 1},
40-
'band_indicies': {'type': 'tuple'}
40+
'band_indicies': {'type': 'list'}
4141
}

0 commit comments

Comments
 (0)