Open ngoldbaum opened 5 years ago
ping @jborrow
I'd prefer unyt.unit_symbols.Msun
.
Maybe we need a separate module within unit
for solar system masses / properties as unyt_quantity
objects?
e.g.
from unyt.solar_system import Msun, Earth
There's also Solar_Mass
which in some ways addresses this issue. It would be nice to define unyt.msun
as 1 * unyt.Solar_Mass
(or as an alias for it, actually).
P.S. There is also solar_mass
which is inconsistent with Solar_Mass
:
In [1]: unyt.solar_mass
Out[1]: unyt_quantity(1.98841586e+30, 'kg')
In [2]: unyt.Solar_Mass
Out[2]: Msun
This is weird:
It was also confusing in the real world.
I'd like to get rid of
unyt.physical_constants.Msun
andunyt.physical_constants.msun
and add aunyt.unit_symbols.msun
but I think that might break code...