yunruse / Noether

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

False positive on `DimensionError` between `joule` and `eV` #50

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

In essence,

>>> dict(eV.dim)
{'mass': Fraction(1, 1), 'current': Fraction(0, 1), 'length': Fraction(2, 1), 'time': Fraction(-2, 1)}

which causes problems. You can also e.g. get this error with (meter * second/second) + meter