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
As mentioned I guess this is because handling arrays that cover a wide magnitude range of values are not so easy to assign a 'compact' unit.
Our unit registry is configured to convert all values to arrays (even scalars) which is why it never works with Q_
we could implement this ourselves in some way but I am fine not having this functionality for now
As mentioned I guess this is because handling arrays that cover a wide magnitude range of values are not so easy to assign a 'compact' unit. Our unit registry is configured to convert all values to arrays (even scalars) which is why it never works with Q_
we could implement this ourselves in some way but I am fine not having this functionality for now
It is not super important. A simple fix that would at least work for the tutorials is to override the function and turn length=1 arrays back into a number type and then pass the new quantity to the parent class function.
When running the following script:
I get the following warning:
and the "wrong" unmodified output:
Exchanging
Q_
withQuantity
removes the warning and the output is as wanted:Here is the corresponding exception block at the beginning of the implementation from
to_compact
:Guess it has something to do with our custom additions.
The text was updated successfully, but these errors were encountered: