Skip to content

Commit

Permalink
change name of function
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Fiddy committed Jan 15, 2025
1 parent ac008d8 commit bd96051
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/script_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pytest

from bimorph_mirror_analysis.maths import find_voltages
from bimorph_mirror_analysis.maths import find_voltage_corrections


@pytest.mark.parametrize(
Expand All @@ -18,11 +18,11 @@ def test_find_voltages_correct_output(
data, expected_output = actuator_data
v = -100
np.testing.assert_almost_equal(
find_voltages(data, v, baseline_voltage_scan=-1), expected_output
find_voltage_corrections(data, v, baseline_voltage_scan=-1), expected_output
)


def test_find_voltages_index_error_throw():
def test_find_voltage_corrections_index_error_throw():
data = np.loadtxt("tests/data/8_actuator_data.txt", delimiter=",")
with pytest.raises(IndexError):
find_voltages(data, -100, baseline_voltage_scan=12)
find_voltage_corrections(data, -100, baseline_voltage_scan=12)

0 comments on commit bd96051

Please sign in to comment.