From d08a9208615633559fb4d9db327a592eb8ec40e7 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Wed, 15 Jan 2025 16:10:28 -0500 Subject: [PATCH] merge cali test --- pioreactor/tests/test_calibrations.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pioreactor/tests/test_calibrations.py b/pioreactor/tests/test_calibrations.py index 7c7d1055..4969f822 100644 --- a/pioreactor/tests/test_calibrations.py +++ b/pioreactor/tests/test_calibrations.py @@ -4,6 +4,7 @@ from datetime import datetime from datetime import timezone +import numpy as np import pytest from msgspec import ValidationError @@ -11,16 +12,11 @@ from pioreactor.calibrations import CALIBRATION_PATH from pioreactor.calibrations import load_active_calibration from pioreactor.calibrations import load_calibration -from pioreactor.structs import CalibrationBase -from pioreactor.structs import ODCalibration -from pioreactor.utils import local_persistent_storage -from __future__ import annotations - -import numpy as np - from pioreactor.calibrations.utils import calculate_poly_curve_of_best_fit from pioreactor.calibrations.utils import curve_to_callable +from pioreactor.structs import CalibrationBase from pioreactor.structs import ODCalibration +from pioreactor.utils import local_persistent_storage from pioreactor.utils.timing import current_utc_datetime @@ -188,7 +184,6 @@ def test_predict_ipredict_consistency(calibration) -> None: assert calibration.ipredict(y) == pytest.approx(x) - def test_linear_data_produces_linear_curve_in_range_even_if_high_degree() -> None: od = np.sort( np.r_[