##// END OF EJS Templates
catch NotImplementedError when using isnan in test...
MinRK -
Show More
@@ -87,7 +87,7 b' def _scrub_nan(A):'
87 for field in A.dtype.fields.keys():
87 for field in A.dtype.fields.keys():
88 try:
88 try:
89 A[field][numpy.isnan(A[field])] = 0
89 A[field][numpy.isnan(A[field])] = 0
90 except TypeError:
90 except (TypeError, NotImplementedError):
91 # e.g. str dtype
91 # e.g. str dtype
92 pass
92 pass
93
93
General Comments 0
You need to be logged in to leave comments. Login now