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