PyFixate / Fixate

Framework for hardware test fixtures and automatic test environments
MIT License
22 stars 17 forks source link

Update unit scaling #148

Open John2202W opened 2 years ago

John2202W commented 2 years ago
John2202W commented 2 years ago

I've plugged some holes in the unit_convert and by doing so hardcoded the display range to agree with eng.notation. A bunch of different ways this function could be done - depends what we want?

The main intention was to clean up the ui display/input process. e.g. allow the user to enter a value of "6.6uF" when measuring a capacitor value. And from the display side automate the user_info: e.g. "the value should be in the range of 6.5u to 6.7u"

Also - the regex for the unit_scale may be getting nasty and could do with some attempts at breaking it