jerabaul29 / OpenMetBuoy-v2021a

An easy to build, affordable, customizable, open source instrument for oceanographic measurements - with global Iridium coverage
MIT License
43 stars 7 forks source link

calibration data: do not use complex objects in pkl files #102

Open jerabaul29 opened 3 weeks ago

jerabaul29 commented 3 weeks ago

When storing calibration data, do not use complex objects (such as a scipy LinearRegression) into pkl files: if the scipy version is updated, then pkl may fail to re-open old pkl files if there are internal changes to the objects. Instead, use dicts of "calibration_parameter_name": value_f64, this will not break in the future :) .