You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/miniconda3/envs/py36/lib/python3.6/site-packages/numpy/lib/function_base.py in insert(arr, obj, values, axis)
4439 new[tuple(slobj)] = arr[tuple(slobj2)]
4440 if wrap:
-> 4441 return wrap(new)
4442 return new
4443 elif indices.size == 0 and not isinstance(obj, np.ndarray):
~/miniconda3/envs/py36/lib/python3.6/site-packages/pint/quantity.py in __array_wrap__(self, obj, context)
1342
1343 def __array_wrap__(self, obj, context=None):
-> 1344 uf, objs, i_out = context
1345
1346 # if this ufunc is not handled by Pint, pass it to the magnitude.
TypeError: 'NoneType' object is not iterable
I have no idea if insert has any hope of working right now, but that exception comes from code that is obviously wrong:
Here context defaults to None (as is documented for numpy), but the first line in __array_wrap__ tries to unpack it unconditionally. I have no idea what the right behavior is in this case.
The text was updated successfully, but these errors were encountered:
The following code:
produces:
I have no idea if
insert
has any hope of working right now, but that exception comes from code that is obviously wrong:pint/pint/quantity.py
Lines 1428 to 1430 in 241bf7d
Here
context
defaults toNone
(as is documented for numpy), but the first line in__array_wrap__
tries to unpack it unconditionally. I have no idea what the right behavior is in this case.The text was updated successfully, but these errors were encountered: