Skip to content

Commit 120fe43

Browse files
author
emason
committed
Fix for TypeError: The numpy boolean negative, the - operator, is not supported
1 parent f57582b commit 120fe43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/EddyIdentification

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ if __name__ == '__main__':
183183
# http://stackoverflow.com/questions/6094957/high-pass-filter-
184184
# for-image-processing-in-python-by-using-scipy-numpy
185185
v = gaussian_filter(sla, sigma=[MRES, ZRES])
186-
w = gaussian_filter(float_(-m), sigma=[MRES, ZRES])
186+
w = gaussian_filter(float_(~m), sigma=[MRES, ZRES])
187187

188188
with errstate(invalid='ignore'):
189189
sla -= ma.array(v / w, mask= (w==0) + m)

0 commit comments

Comments
 (0)