bug fix for crop_stokes.write_to and background subtraction

This commit is contained in:
2024-03-12 17:06:28 +01:00
parent 10c35b10fc
commit 762b857720
4 changed files with 7 additions and 14 deletions

View File

@@ -164,7 +164,7 @@ def bin_ndarray(ndarray, new_shape, operation='sum'):
[342 350 358 366 374]]
"""
if not operation.lower() in ['sum', 'mean', 'average', 'avg']:
if operation.lower() not in ['sum', 'mean', 'average', 'avg']:
raise ValueError("Operation not supported.")
if ndarray.ndim != len(new_shape):
raise ValueError("Shape mismatch: {} -> {}".format(ndarray.shape,