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
unyt_quantity objects are recognised as instances of collections.abc.Sized, which indicates that they have a __len__� protocol. However, calling len(quantity) fails with an error message contradicting this.
So there would be two concurrent approaches to solving this. The first possibility would be to make all quantities have len 1.
Since quand[0] returns an error too however, I suppose that the issue is really that isinstance(quan, Sized) evaluates as True, which is likely a direct consequence of inheriting from unyt_array
Description
unyt_quantity
objects are recognised as instances ofcollections.abc.Sized
, which indicates that they have a__len__�
protocol. However, callinglen(quantity)
fails with an error message contradicting this.What I Did
output
The text was updated successfully, but these errors were encountered: