yunruse / Noether

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

Cannot use `@` on prefixed units #37

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

In the expression e.g. microgram / 40 @ nanogram, a TypeError is raised, as a nanogram is only a Measure. So long as the cataloguing tools do not self-pollute (and confuse nanogram for a new unit to store) it would be helpful to auto-generate units rather than measures, so @ can be used.

yunruse commented 1 year ago

Fixed:

>>> microgram * 40 @ nanogram
39999.99999999999 ng  # mass

c.f. #18 for floating point annoyance.