Skip to content

Commit

Permalink
CLN: Fix mispelling of 'trajectories'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Apr 17, 2024
1 parent be6eb0f commit 301d92c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def data_lorenz():


@pytest.fixture
def data_multiple_trajctories():
def data_multiple_trajectories():

n_points = [100, 200, 500]
initial_conditions = [
Expand Down
16 changes: 8 additions & 8 deletions test/test_pysindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand All @@ -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)

Expand Down Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions test/test_sindyc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_trajectories(data_multiple_trajectories):
x, t = data_multiple_trajectories
u = [np.ones((xi.shape[0], 2)) for xi in x]

model = SINDy()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 301d92c

Please sign in to comment.