From 5c528ea28ec7c194c18af4584354b637cc13942e Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Mon, 25 Mar 2024 16:59:27 -0400 Subject: [PATCH] fix typo in variable name --- scos_actions/calibration/tests/test_sensor_calibration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scos_actions/calibration/tests/test_sensor_calibration.py b/scos_actions/calibration/tests/test_sensor_calibration.py index fc9ed010..88de63f6 100644 --- a/scos_actions/calibration/tests/test_sensor_calibration.py +++ b/scos_actions/calibration/tests/test_sensor_calibration.py @@ -69,7 +69,7 @@ def run_pytest_point(self, sr, f, g, reason, sr_m=False, f_m=False, g_m=False): interp_cal_data = self.sample_cal.get_calibration_dict( {"sample_rate": sr, "frequency": f, "gain": g} ) - interp_gain_siggan = interp_cal_data["gain"] + interp_gain_sigan = interp_cal_data["gain"] # Save the point so we don't duplicate self.pytest_points.append( @@ -86,7 +86,7 @@ def run_pytest_point(self, sr, f, g, reason, sr_m=False, f_m=False, g_m=False): tolerance = 1e-5 msg = "Scale factor not correctly calculated!\r\n" msg = f"{msg} Expected value: {calc_gain_sigan}\r\n" - msg = f"{msg} Calculated value: {interp_gain_siggan}\r\n" + msg = f"{msg} Calculated value: {interp_gain_sigan}\r\n" msg = f"{msg} Tolerance: {tolerance}\r\n" msg = f"{msg} Test: {reason}\r\n" msg = f"{msg} Sample Rate: {sr / 1e6}({sr_m / 1e6})\r\n" @@ -97,12 +97,12 @@ def run_pytest_point(self, sr, f, g, reason, sr_m=False, f_m=False, g_m=False): msg ) ) - if not isclose(calc_gain_sigan, interp_gain_siggan, abs_tol=tolerance): + if not isclose(calc_gain_sigan, interp_gain_sigan, abs_tol=tolerance): interp_cal_data = self.sample_cal.get_calibration_dict( {"sample_rate": sr, "frequency": f, "gain": g} ) - assert isclose(calc_gain_sigan, interp_gain_siggan, abs_tol=tolerance), msg + assert isclose(calc_gain_sigan, interp_gain_sigan, abs_tol=tolerance), msg return True @pytest.fixture(autouse=True)