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
{{ message }}
Repository navigation
Decorator for converting quantity to arrays in specific units? #7368
I know this was discussed some time ago on the mailing list (I know @taldcroft expressed a wish for it), and thought there was an issue already, but couldn't find it: for some functions based on regular ndarray it would be good to have a decorator that converts input to a required unit and then takes the value, i.e., input.to_value(...). If the decorator is sufficiently clever, it would also including converting multiple inputs to the same unit (e.g., that of the first argument), something that is currently done in, e.g., _unquantity_allclose_arguments.
Activity