From 4348caead704367f91181fe14369654cf7d701fd Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Thu, 21 Jul 2022 14:15:15 +0200 Subject: [PATCH] Simplified condition. Signed-off-by: Daniel Scheffler --- arosics/CoReg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arosics/CoReg.py b/arosics/CoReg.py index 6be636d..9201576 100755 --- a/arosics/CoReg.py +++ b/arosics/CoReg.py @@ -101,7 +101,7 @@ def __init__(self, # compute nodata mask and validate that it is not completely filled with nodata self.calc_mask_nodata(fromBand=self.band4match) # this avoids that all bands have to be read - if np.std(self.mask_nodata) == 0 and np.mean(self.mask_nodata) == 0: + if True not in self.mask_nodata[:]: raise RuntimeError(f'The {self.imName} passed to AROSICS only contains nodata values.') # set footprint_poly