diff --git a/test/conftest.py b/test/conftest.py index 107fcf8b7..33e9e1b06 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -69,7 +69,7 @@ def data_lorenz(): @pytest.fixture -def data_multiple_trajctories(): +def data_multiple_trajectories(): n_points = [100, 200, 500] initial_conditions = [ diff --git a/test/test_pysindy.py b/test/test_pysindy.py index 82ac979f4..7153580ba 100644 --- a/test/test_pysindy.py +++ b/test/test_pysindy.py @@ -343,8 +343,8 @@ def test_score_pde(data_1d_random_pde): assert model.score(u, t) <= 1 -def test_fit_multiple_trajectories(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_fit_multiple_trajectories(data_multiple_trajectories): + x, t = data_multiple_trajectories model = SINDy() # Should fail if multiple_trajectories flag is not set @@ -371,8 +371,8 @@ def test_fit_multiple_trajectories(data_multiple_trajctories): model.fit(x, t=t, multiple_trajectories=True) -def test_predict_multiple_trajectories(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_predict_multiple_trajectories(data_multiple_trajectories): + x, t = data_multiple_trajectories model = SINDy() model.fit(x, t=t, multiple_trajectories=True) @@ -384,8 +384,8 @@ def test_predict_multiple_trajectories(data_multiple_trajctories): assert len(p) == len(x) -def test_score_multiple_trajectories(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_score_multiple_trajectories(data_multiple_trajectories): + x, t = data_multiple_trajectories model = SINDy() model.fit(x, t=t, multiple_trajectories=True) @@ -547,13 +547,13 @@ def test_print_discrete_time_multiple_trajectories( assert len(out) > 1 -def test_differentiate(data_lorenz, data_multiple_trajctories): +def test_differentiate(data_lorenz, data_multiple_trajectories): x, t = data_lorenz model = SINDy() model.differentiate(x, t) - x, t = data_multiple_trajctories + x, t = data_multiple_trajectories model.differentiate(x, t, multiple_trajectories=True) model = SINDy(discrete_time=True) diff --git a/test/test_sindyc.py b/test/test_sindyc.py index 5187832bf..ec258e269 100644 --- a/test/test_sindyc.py +++ b/test/test_sindyc.py @@ -235,8 +235,8 @@ def test_score(data): assert model.score(x, u=u, t=t, x_dot=x) <= 1 -def test_fit_multiple_trajectores(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_fit_multiple_trajectores(data_multiple_trajectories): + x, t = data_multiple_trajectories u = [np.ones((xi.shape[0], 2)) for xi in x] model = SINDy() @@ -271,8 +271,8 @@ def test_fit_multiple_trajectores(data_multiple_trajctories): check_is_fitted(model) -def test_predict_multiple_trajectories(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_predict_multiple_trajectories(data_multiple_trajectories): + x, t = data_multiple_trajectories u = [np.ones((xi.shape[0], 2)) for xi in x] model = SINDy() @@ -286,8 +286,8 @@ def test_predict_multiple_trajectories(data_multiple_trajctories): assert len(p) == len(x) -def test_score_multiple_trajectories(data_multiple_trajctories): - x, t = data_multiple_trajctories +def test_score_multiple_trajectories(data_multiple_trajectories): + x, t = data_multiple_trajectories u = [np.ones((xi.shape[0], 2)) for xi in x] model = SINDy()