Skip to content

Commit

Permalink
Simplified condition.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
  • Loading branch information
danschef committed Jul 21, 2022
1 parent b6627b6 commit 4348cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arosics/CoReg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4348cae

Please sign in to comment.