diff --git a/plantcv/geospatial/read_geotif.py b/plantcv/geospatial/read_geotif.py index 6167e8e..8434bd4 100644 --- a/plantcv/geospatial/read_geotif.py +++ b/plantcv/geospatial/read_geotif.py @@ -84,6 +84,8 @@ def read_geotif(filename, bands="R,G,B", cropto=None): wavelengths[wavelength] = i elif isinstance(bands, list): + # Keep list_bands to check length in next section + list_bands = bands for i, wl in enumerate(bands): wavelengths[wl] = i