yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

Inverse units handle display slightly peculiarly #23

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

The following:

>>> kayser
kayser  # wavenumber, 100 1 / m
>>> wavenumber
wavenumber  # 1 / length

could easily be made less weird (100 1 / m) by ensuring that the / only occurs if there are positive and negative exponents in the dimension (eg m / s).

IMO, by default it should be m s**-1, and the slashes should be behind a conf.display_divisors. Additionally some conf.display_exponent option (options: **, ^, unicode) should exist!

yunruse commented 1 year ago

It seems this was fixed somewhere along the line!

>>> kayser
kayser  # wavenumber, 100 / m