Closed leewujung closed 3 months ago
Apparently right now echopype.mask.apply_mask does not interpret NaN as 0 or False in the mask production, and actually treats it as 1 or True.
echopype.mask.apply_mask
NaN
False
True
This is because xr.where treat NaN in cond as True... kinda unexpected behavior.
xr.where
I'll follow up with a PR to fix this.
Closed by merging of #1376
Apparently right now
echopype.mask.apply_mask
does not interpretNaN
as 0 orFalse
in the mask production, and actually treats it as 1 orTrue
.This is because
xr.where
treatNaN
in cond asTrue
... kinda unexpected behavior.I'll follow up with a PR to fix this.