Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed May 26, 2023
1 parent 6bd2a4c commit b0a00e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testSBMLSuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ def test_sbml_testsuite_case(test_number, result_path, sbml_semantic_cases_dir):
current_test_path,
test_id,
model_dir,
generate_sensitivity_code=test_id in sensitivity_check_cases,
generate_sensitivity_code=True,
)
settings = read_settings_file(current_test_path, test_id)

atol, rtol = apply_settings(settings, solver, model, test_id)

solver.setSensitivityOrder(amici.SensitivityOrder.first)
solver.setSensitivityMethod(amici.SensitivityMethod.forward)

# simulate model
rdata = amici.runAmiciSimulation(model, solver)
if rdata["status"] != amici.AMICI_SUCCESS:
Expand All @@ -98,8 +101,6 @@ def test_sbml_testsuite_case(test_number, result_path, sbml_semantic_cases_dir):

# check sensitivities for selected models
if epsilon := sensitivity_check_cases.get(test_id):
solver.setSensitivityOrder(amici.SensitivityOrder.first)
solver.setSensitivityMethod(amici.SensitivityMethod.forward)
check_derivatives(model, solver, epsilon=epsilon)

except amici.sbml_import.SBMLException as err:
Expand Down

0 comments on commit b0a00e9

Please sign in to comment.