From 3a9d45eaa5f474bc9cb51ee264641d93eb40355c Mon Sep 17 00:00:00 2001 From: davidh-ssec <david.hoese@ssec.wisc.edu> Date: Wed, 13 Sep 2017 18:25:29 -0500 Subject: [PATCH] Fix creating RGBs for all time steps when not all bands are specified --- sift/model/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sift/model/document.py b/sift/model/document.py index eed2e746..61c2b3a5 100644 --- a/sift/model/document.py +++ b/sift/model/document.py @@ -1159,7 +1159,7 @@ class Document(QObject): # base class is rightmost, mixins left of that r = building_blocks.get((plat, inst, step, rband), None) g = building_blocks.get((plat, inst, step, gband), None) b = building_blocks.get((plat, inst, step, bband), None) - if r and g and b: + if r or g or b: to_build.append((step,r,g,b)) to_make_invisible.extend([r,g,b]) LOG.info('will build RGB from r=%s g=%s b=%s' % (r,g,b)) -- GitLab