yunruse / Noether

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

`PrefixedUnit`s not in use #62

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

General info

Python 3.11, Noether 1.0

Steps

>>> type(milli * liter)
<class 'noether.core.units.PrefixedUnit.PrefixedUnit'>
>>> type(milliliter)
<class 'noether.core.Unit.Unit'>

Expected behaviour

In the Noether name mangling, prefixed units should actually be a PrefixedUnit.

I'm not sure how this happens, because Unit.prefixed_units generates PrefixedUnits. Somewhere in the process they're being mixed up, I guess?