use the same validation logic as in other cases
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user