(cal: PlattCalibrator, path: Path)
| 59 | |
| 60 | |
| 61 | def save_calibrator(cal: PlattCalibrator, path: Path) -> None: |
| 62 | path.parent.mkdir(parents=True, exist_ok=True) |
| 63 | with open(path, "w") as f: |
| 64 | json.dump({"temperature": cal.temperature, "version": 1}, f) |
| 65 | |
| 66 | |
| 67 | def load_calibrator(path: Path) -> PlattCalibrator: |