labscript-suite / labscript-utils

Shared modules used by the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦. Includes a graphical exception handler, debug tools, configuration management, cross platform filepath conversions, unit conversions and custom GUI widgets.
http://labscriptsuite.org
Other
2 stars 45 forks source link

Add generic frequency conversion class #84

Closed dihm closed 2 years ago

dihm commented 2 years ago

I find I am often in need of a simple unit conversion class for frequencies that goes between standard SI prefixes. Figure this is basic enough functionality it should probably go into the mainline.

This provides the FreqConversion class that goes from a base of Hz to kHz, MHz, or GHz.

dihm commented 2 years ago

Going to go ahead and merge as this is a pretty innocuous change that won't effect anything existing.