From 331165789d05a6931e1ba33a2d47b465df67eab7 Mon Sep 17 00:00:00 2001 From: k034b363 Date: Mon, 19 Aug 2024 16:36:59 -0500 Subject: [PATCH] Try a fix for list of bands in read_geotif --- plantcv/geospatial/read_geotif.py | 2 ++ 1 file changed, 2 insertions(+) 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