numat / alicat

Python driver and command line tool for Alicat mass flow controllers.
GNU General Public License v2.0
21 stars 27 forks source link

Numeric values are incorrectly returned as strings #36

Closed alexrudd2 closed 1 year ago

alexrudd2 commented 1 year ago

https://github.com/numat/alicat/commit/6e6c1ad4599582c7bacf1a7a0c51b1825c0bc1bd was overzealous, and returns numeric values as strings.

❯ alicat /dev/tty.usbserial-FTCJ5EK9
{
  "control_point": "pressure,
  "gas": "Air",
  "mass_flow": "-000.00",
  "pressure": "+014.60",
  "setpoint": 0.05,
  "temperature": "+028.24",
  "volumetric_flow": "-000.00"
}