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
E.g. emu #4918, possibly there are others; prefixed solar, earth, and jupiter mass in #5661.
This issue is for discussion about ways to deprecate (prefixed) units. A first possible implementation (#5787), which emitted warnings on importing units was deemed too drastic, since the whole point is that most of those units are rarely if ever used.
A suggestion by @pllim was to move deprecated units to a separate module (say, units.deprecated. This has the advantage that if code still really needs it, one can imagine being able to do with u.decprecated.enable() just like one can do with u.imperial.enable(). It might also be possible to not just remove a unit altogether from the astropy.units namespace, but first replace it with something that will emit a warning when used but otherwise behaves like the unit. (Perhaps easier would be just to raise an exception, telling what to do to solve it).
The text was updated successfully, but these errors were encountered:
E.g. emu #4918, possibly there are others; prefixed solar, earth, and jupiter mass in #5661.
This issue is for discussion about ways to deprecate (prefixed) units. A first possible implementation (#5787), which emitted warnings on importing
units
was deemed too drastic, since the whole point is that most of those units are rarely if ever used.A suggestion by @pllim was to move deprecated units to a separate module (say,
units.deprecated
. This has the advantage that if code still really needs it, one can imagine being able to dowith u.decprecated.enable()
just like one can dowith u.imperial.enable()
. It might also be possible to not just remove a unit altogether from theastropy.units
namespace, but first replace it with something that will emit a warning when used but otherwise behaves like the unit. (Perhaps easier would be just to raise an exception, telling what to do to solve it).The text was updated successfully, but these errors were encountered: