Closed gdementen closed 2 years ago
A variant of this bug/regression found by another user: Array + Axis returns False
>>> arr = ndtest("time=2010..2012")
>>> arr + arr.time
False
The workaround in that case is:
>>> arr = ndtest("time=2010..2012")
>>> arr + asarray(arr.time)
time 2010 2011 2012
2010 2012 2014
This is a regression in 0.33 (39ced81f9a335f47bbf512c50139e35f1ff86705) because None is not a scalar for np.isscalar
Test case:
One workaround is (we can use
is
too but it is farther from the original code):