use the same validation logic as in other cases

This commit is contained in:
2024-08-02 15:10:52 +02:00
parent d9d79f3e87
commit 062cc6055c

View File

@ -2,7 +2,9 @@ import numpy as np
def calc_mask_pixels(pfdata, pixel_mask_pf):
if pixel_mask_pf is not None:
if pixel_mask_pf is None:
return
pfdata[pixel_mask_pf != 1] = np.nan #TODO: boolean mask