connorferster / forallpeople

Python SI units library: your 'daily driver' for calculations.
Apache License 2.0
268 stars 36 forks source link

Error using complex numbers #43

Open ddi-acassidy opened 2 years ago

ddi-acassidy commented 2 years ago

If I try to add units to a complex value, ForAllPeople throws an error

For example if I had a purely reactive current:

import forallpeople

forallpeople.environment('default', top_level=True)

1j * A

This throws an error: TypeError: '<' not supported between instances of 'int' and 'complex'

connorferster commented 1 year ago

Hmmm...Thanks for pointing this out. I would like for this not to be a problem.

Will add it to the list of enhancements!