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.
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
ndarrayit 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.