Skip to content

Commit

Permalink
TST(trapping): remove unused quadratic_library fixutre
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Jan 8, 2024
1 parent 141f7f6 commit 1b436ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,23 +315,6 @@ def custom_library_bias():
)


@pytest.fixture
def quadratic_library():
library_functions = [
lambda x: x,
lambda x, y: x * y,
lambda x: x**2,
]
function_names = [
lambda x: str(x),
lambda x, y: "{} * {}".format(x, y),
lambda x: "{}^2".format(x),
]
return CustomLibrary(
library_functions=library_functions, function_names=function_names
)


@pytest.fixture
def generalized_library():
tensor_array = [[1, 1]]
Expand Down
2 changes: 1 addition & 1 deletion test/test_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def test_stable_linear_sr3_linear_library():
dict(thresholder="weighted_l2", thresholds=1e-5 * np.ones((1, 2))),
],
)
def test_trapping_sr3_quadratic_library(params, trapping_sr3_params, quadratic_library):
def test_trapping_sr3_quadratic_library(params, trapping_sr3_params):
t = np.arange(0, 1, 0.1)
x = np.exp(-t).reshape((-1, 1))
x_dot = -x
Expand Down

0 comments on commit 1b436ca

Please sign in to comment.