Skip to content

Commit

Permalink
TST: adjust getters test to capture get_value_opt N-D bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giovaniceotto committed Nov 28, 2023
1 parent afac8ef commit b296a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def test_getters(func_from_csv, func_2d_from_csv):
assert func_2d_from_csv.get_outputs() == ["Scalar"]
assert func_2d_from_csv.get_interpolation_method() == "shepard"
assert func_2d_from_csv.get_extrapolation_method() == "natural"
assert np.isclose(func_2d_from_csv.get_value(0, 0), 0.0, atol=1e-6)
assert np.isclose(func_2d_from_csv.get_value_opt(0, 0), 0.0, atol=1e-6)
assert np.isclose(func_2d_from_csv.get_value(0.1, 0.8), 0.058, atol=1e-6)
assert np.isclose(func_2d_from_csv.get_value_opt(0.1, 0.8), 0.058, atol=1e-6)


def test_setters(func_from_csv, func_2d_from_csv):
Expand Down

0 comments on commit b296a0f

Please sign in to comment.