Skip to content

Commit

Permalink
[squash] minor formating fixes.
Browse files Browse the repository at this point in the history
Overall good new test with very large time steps.
  • Loading branch information
schaubh committed Dec 15, 2024
1 parent 61581c6 commit b8850eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tests/test_scenarioVariableTimeStepIntegrators.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@

@pytest.mark.scenarioTest
def test_scenarioIntegrators(show_plots):
"""This function is called by the py.test environment."""
"""This function is called by the pytest environment."""

# for integratorCase in ["rk4", "rkf45", "rkf78"]:
for integratorCase in ["rkf45", "rkf78"]:

# each test method requires a single assert method to be called
Expand All @@ -60,12 +59,12 @@ def test_scenarioIntegrators(show_plots):
analyticalPos = getAnalyticalSolution(posData[0,:], velData[0,:], timeData[-1] * macros.NANO2SEC)

absTolerance = {
"rkf45": 2000, # m
"rkf78": 100 # m
"rkf45": 2000, # m
"rkf78": 100 # m
}

npt.assert_allclose(
posData[-1,:],
posData[-1, :],
analyticalPos,
rtol=0,
atol=absTolerance[integratorCase],
Expand Down

0 comments on commit b8850eb

Please sign in to comment.