Test Results

Unit Test Results

Test file: C:Usersn.vanostaGitHubpyCircAdaptdocssource../../.pytest/pytest-report.xml

Template used: C:Usersn.vanosta.condaenvsCircAdapt_2407Libsite-packagessphinxcontribtest_reportsdirectives/test_report_template.txt

Statistics

Test suites: 1
Test cases: 33
Failed test cases: 4
Skipped test cases: 0

Test cases:

ID

Title

Result

REPORT_0EA_0573B

test_patch_lsi[solver=runge_kutta4-dt=0.01ms]

failure

REPORT_0EA_063CD

test_artven[solver=forward_euler-dt=0.01ms]

passed

REPORT_0EA_0BBA5

test_artven[solver=backward_differential_o2-dt=0.01ms]

passed

REPORT_0EA_139A5

test_valve[solver=backward_differential_o2-dt=0.01ms]

passed

REPORT_0EA_1C4B5

test_patch_lsi[solver=adams_bashforth_o2-dt=0.01ms]

passed

REPORT_0EA_25950

test_patch_lsi[solver=backward_differential_o3-dt=0.01ms]

passed

REPORT_0EA_2AA16

test_valve[solver=adams_moulton_o4-dt=0.01ms]

passed

REPORT_0EA_33743

test_valve[solver=backward_differential_o3-dt=0.01ms]

passed

REPORT_0EA_3601E

test_patch_lsi[solver=forward_euler-dt=0.01ms]

failure

REPORT_0EA_38ED2

test_valve[solver=adams_bashforth_o2-dt=0.01ms]

passed

REPORT_0EA_395CD

test_artven[solver=runge_kutta4-dt=0.01ms]

passed

REPORT_0EA_3F942

test_patch_lsi[solver=adams_bashforth_o3-dt=0.01ms]

passed

REPORT_0EA_752B8

test_valve[solver=forward_euler-dt=0.01ms]

passed

REPORT_0EA_76492

test_patch_lsi[solver=adams_moulton_o3-dt=0.01ms]

passed

REPORT_0EA_78AFD

test_valve[solver=adams_moulton_o3-dt=0.01ms]

passed

REPORT_0EA_7B96B

test_artven[solver=backward_euler-dt=0.01ms]

passed

REPORT_0EA_88D60

test_patch_lsi[solver=backward_euler-dt=0.01ms]

failure

REPORT_0EA_95378

test_patch_lsi[solver=adams_moulton_o5-dt=0.01ms]

passed

REPORT_0EA_A53E9

test_patch_lsi[solver=backward_differential_o2-dt=0.01ms]

passed

REPORT_0EA_ABD83

test_artven[solver=adams_moulton_o3-dt=0.01ms]

passed

REPORT_0EA_AF1AC

test_artven[solver=adams_bashforth_o2-dt=0.01ms]

passed

REPORT_0EA_B1DFE

test_artven[solver=adams_moulton_o4-dt=0.01ms]

passed

REPORT_0EA_B25A7

test_valve[solver=trapezoidal_rule-dt=0.01ms]

passed

REPORT_0EA_B510E

test_patch_lsi[solver=trapezoidal_rule-dt=0.01ms]

failure

REPORT_0EA_C02F2

test_valve[solver=backward_euler-dt=0.01ms]

passed

REPORT_0EA_C4E27

test_valve[solver=runge_kutta4-dt=0.01ms]

passed

REPORT_0EA_C98C1

test_valve[solver=adams_bashforth_o3-dt=0.01ms]

passed

REPORT_0EA_D85D9

test_artven[solver=adams_bashforth_o3-dt=0.01ms]

passed

REPORT_0EA_DC404

test_artven[solver=adams_moulton_o5-dt=0.01ms]

passed

REPORT_0EA_E579A

test_artven[solver=trapezoidal_rule-dt=0.01ms]

passed

REPORT_0EA_F4B55

test_patch_lsi[solver=adams_moulton_o4-dt=0.01ms]

passed

REPORT_0EA_FD200

test_valve[solver=adams_moulton_o5-dt=0.01ms]

passed

REPORT_0EA_FDA13

test_artven[solver=backward_differential_o3-dt=0.01ms]

passed

Failed test cases:

ID

Title

Result

REPORT_0EA_0573B

test_patch_lsi[solver=runge_kutta4-dt=0.01ms]

failure

REPORT_0EA_3601E

test_patch_lsi[solver=forward_euler-dt=0.01ms]

failure

REPORT_0EA_88D60

test_patch_lsi[solver=backward_euler-dt=0.01ms]

failure

REPORT_0EA_B510E

test_patch_lsi[solver=trapezoidal_rule-dt=0.01ms]

failure

Skipped test cases:

No needs passed the filters

Imported data

Test-Case: test_artven[solver=adams_bashforth_o2-dt=0.01ms] REPORT_0EA_AF1AC ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=adams_bashforth_o2-dt=0.01ms]
case_name: test_artven
case_parameter: solver=adams_bashforth_o2-dt=0.01ms
classname: tests.modules.test_artven
time: 0.106
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=adams_bashforth_o3-dt=0.01ms] REPORT_0EA_D85D9 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=adams_bashforth_o3-dt=0.01ms]
case_name: test_artven
case_parameter: solver=adams_bashforth_o3-dt=0.01ms
classname: tests.modules.test_artven
time: 0.086
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=adams_moulton_o3-dt=0.01ms] REPORT_0EA_ABD83 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=adams_moulton_o3-dt=0.01ms]
case_name: test_artven
case_parameter: solver=adams_moulton_o3-dt=0.01ms
classname: tests.modules.test_artven
time: 0.085
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=adams_moulton_o4-dt=0.01ms] REPORT_0EA_B1DFE ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=adams_moulton_o4-dt=0.01ms]
case_name: test_artven
case_parameter: solver=adams_moulton_o4-dt=0.01ms
classname: tests.modules.test_artven
time: 0.099
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=adams_moulton_o5-dt=0.01ms] REPORT_0EA_DC404 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=adams_moulton_o5-dt=0.01ms]
case_name: test_artven
case_parameter: solver=adams_moulton_o5-dt=0.01ms
classname: tests.modules.test_artven
time: 0.091
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=backward_differential_o2-dt=0.01ms] REPORT_0EA_0BBA5 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=backward_differential_o2-dt=0.01ms]
case_name: test_artven
case_parameter: solver=backward_differential_o2-dt=0.01ms
classname: tests.modules.test_artven
time: 0.098
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=backward_differential_o3-dt=0.01ms] REPORT_0EA_FDA13 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=backward_differential_o3-dt=0.01ms]
case_name: test_artven
case_parameter: solver=backward_differential_o3-dt=0.01ms
classname: tests.modules.test_artven
time: 0.115
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=forward_euler-dt=0.01ms] REPORT_0EA_063CD ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=forward_euler-dt=0.01ms]
case_name: test_artven
case_parameter: solver=forward_euler-dt=0.01ms
classname: tests.modules.test_artven
time: 0.099
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=backward_euler-dt=0.01ms] REPORT_0EA_7B96B ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=backward_euler-dt=0.01ms]
case_name: test_artven
case_parameter: solver=backward_euler-dt=0.01ms
classname: tests.modules.test_artven
time: 0.075
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=trapezoidal_rule-dt=0.01ms] REPORT_0EA_E579A ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=trapezoidal_rule-dt=0.01ms]
case_name: test_artven
case_parameter: solver=trapezoidal_rule-dt=0.01ms
classname: tests.modules.test_artven
time: 0.078
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_artven[solver=runge_kutta4-dt=0.01ms] REPORT_0EA_395CD ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_artven[solver=runge_kutta4-dt=0.01ms]
case_name: test_artven
case_parameter: solver=runge_kutta4-dt=0.01ms
classname: tests.modules.test_artven
time: 0.105
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=adams_bashforth_o2-dt=0.01ms] REPORT_0EA_1C4B5 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=adams_bashforth_o2-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=adams_bashforth_o2-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.197
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=adams_bashforth_o3-dt=0.01ms] REPORT_0EA_3F942 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=adams_bashforth_o3-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=adams_bashforth_o3-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.188
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=adams_moulton_o3-dt=0.01ms] REPORT_0EA_76492 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=adams_moulton_o3-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=adams_moulton_o3-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.193
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=adams_moulton_o4-dt=0.01ms] REPORT_0EA_F4B55 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=adams_moulton_o4-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=adams_moulton_o4-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.199
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=adams_moulton_o5-dt=0.01ms] REPORT_0EA_95378 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=adams_moulton_o5-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=adams_moulton_o5-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.197
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=backward_differential_o2-dt=0.01ms] REPORT_0EA_A53E9 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=backward_differential_o2-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=backward_differential_o2-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.211
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=backward_differential_o3-dt=0.01ms] REPORT_0EA_25950 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=backward_differential_o3-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=backward_differential_o3-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.227
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_patch_lsi[solver=forward_euler-dt=0.01ms] REPORT_0EA_3601E ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_failure
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=forward_euler-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=forward_euler-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.192
result: failure
links outgoing: REPORT, REPORT_0EA

Text:

dt = 1e-05, solver = 'forward_euler'

@pytest.mark.parametrize("dt", test_dts, ids=lambda d: f"dt={d*1e3}ms")
@pytest.mark.parametrize("solver", test_solver, ids=lambda d: f"solver={d}")
def test_patch_lsi(dt, solver):
"""
Test elements:
Build Pre-Afterload module
Build Patch
Set parameters of Patch2022
Run 1 beat
"""
l_si_t0 = 1.0

# create, initialize, and run model
order = None

solver_name = solver[:]
if solver_name[-1].isnumeric() and solver_name[-3:-1] == '_o':
order = int(solver_name[-1])
solver_name = solver_name[:-3]
model = circadapt.model.benchmark.Patch(solver_name)

if order is not None:
model.set('Solver.order', order)

model.set('Model.W.P.l_si', l_si_t0)
model.set('Solver.dt', dt)
model.set('Solver.dt_export', dt)

# set Sf_act to zero for verification purposes
model.set('Model.W.P.Sf_act', 0.0)
model['LoadExperiment']['T_afterload'] = 500
model.run(1)

# test model test
model.assert_1_beat()

# Test analytical solution l_si
l_si = model.get('Model.W.P.l_si')
l_s = model.get('Model.W.P.l_s')

t = model.get('Solver.t')

v_max = model.get('Model.W.P.v_max')
l_se0 = model.get('Model.W.P.l_se0')

# numerical solution, squared error in
l_si_true = passive_patch_analytical_solution(
l_s[0],
l_si[0],
v_max,
l_se0,
t,
)

e = 1e-9
>           assert np.mean((l_si - l_si_true)**2) < e
E           assert np.float64(1.981672405543074e-09) < 1e-09
E            +  where np.float64(1.981672405543074e-09) = <function mean at 0x00000247ED87C6B0>(((array([1.        , 1.00217061, 1.00433743, ..., 2.24035085, 2.24035085,\n       2.24035085]) - array([1.        , 1.00216872, 1.00433364, ..., 2.24035085, 2.24035085,\n       2.24035085])) ** 2))
E            +    where <function mean at 0x00000247ED87C6B0> = np.mean

tests\modules\test_patch_lsi.py:109: AssertionError
Test-Case: test_patch_lsi[solver=backward_euler-dt=0.01ms] REPORT_0EA_88D60 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_failure
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=backward_euler-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=backward_euler-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.195
result: failure
links outgoing: REPORT, REPORT_0EA

Text:

dt = 1e-05, solver = 'backward_euler'

@pytest.mark.parametrize("dt", test_dts, ids=lambda d: f"dt={d*1e3}ms")
@pytest.mark.parametrize("solver", test_solver, ids=lambda d: f"solver={d}")
def test_patch_lsi(dt, solver):
"""
Test elements:
Build Pre-Afterload module
Build Patch
Set parameters of Patch2022
Run 1 beat
"""
l_si_t0 = 1.0

# create, initialize, and run model
order = None

solver_name = solver[:]
if solver_name[-1].isnumeric() and solver_name[-3:-1] == '_o':
order = int(solver_name[-1])
solver_name = solver_name[:-3]
model = circadapt.model.benchmark.Patch(solver_name)

if order is not None:
model.set('Solver.order', order)

model.set('Model.W.P.l_si', l_si_t0)
model.set('Solver.dt', dt)
model.set('Solver.dt_export', dt)

# set Sf_act to zero for verification purposes
model.set('Model.W.P.Sf_act', 0.0)
model['LoadExperiment']['T_afterload'] = 500
model.run(1)

# test model test
model.assert_1_beat()

# Test analytical solution l_si
l_si = model.get('Model.W.P.l_si')
l_s = model.get('Model.W.P.l_s')

t = model.get('Solver.t')

v_max = model.get('Model.W.P.v_max')
l_se0 = model.get('Model.W.P.l_se0')

# numerical solution, squared error in
l_si_true = passive_patch_analytical_solution(
l_s[0],
l_si[0],
v_max,
l_se0,
t,
)

e = 1e-9
>           assert np.mean((l_si - l_si_true)**2) < e
E           assert np.float64(1.9914992609589794e-09) < 1e-09
E            +  where np.float64(1.9914992609589794e-09) = <function mean at 0x00000247ED87C6B0>(((array([1.        , 1.00216682, 1.00432985, ..., 2.24035085, 2.24035085,\n       2.24035085]) - array([1.        , 1.00216872, 1.00433364, ..., 2.24035085, 2.24035085,\n       2.24035085])) ** 2))
E            +    where <function mean at 0x00000247ED87C6B0> = np.mean

tests\modules\test_patch_lsi.py:109: AssertionError
Test-Case: test_patch_lsi[solver=trapezoidal_rule-dt=0.01ms] REPORT_0EA_B510E ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_failure
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=trapezoidal_rule-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=trapezoidal_rule-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.211
result: failure
links outgoing: REPORT, REPORT_0EA

Text:

dt = 1e-05, solver = 'trapezoidal_rule'

@pytest.mark.parametrize("dt", test_dts, ids=lambda d: f"dt={d*1e3}ms")
@pytest.mark.parametrize("solver", test_solver, ids=lambda d: f"solver={d}")
def test_patch_lsi(dt, solver):
"""
Test elements:
Build Pre-Afterload module
Build Patch
Set parameters of Patch2022
Run 1 beat
"""
l_si_t0 = 1.0

# create, initialize, and run model
order = None

solver_name = solver[:]
if solver_name[-1].isnumeric() and solver_name[-3:-1] == '_o':
order = int(solver_name[-1])
solver_name = solver_name[:-3]
model = circadapt.model.benchmark.Patch(solver_name)

if order is not None:
model.set('Solver.order', order)

model.set('Model.W.P.l_si', l_si_t0)
model.set('Solver.dt', dt)
model.set('Solver.dt_export', dt)

# set Sf_act to zero for verification purposes
model.set('Model.W.P.Sf_act', 0.0)
model['LoadExperiment']['T_afterload'] = 500
model.run(1)

# test model test
model.assert_1_beat()

# Test analytical solution l_si
l_si = model.get('Model.W.P.l_si')
l_s = model.get('Model.W.P.l_s')

t = model.get('Solver.t')

v_max = model.get('Model.W.P.v_max')
l_se0 = model.get('Model.W.P.l_se0')

# numerical solution, squared error in
l_si_true = passive_patch_analytical_solution(
l_s[0],
l_si[0],
v_max,
l_se0,
t,
)

e = 1e-9
>           assert np.mean((l_si - l_si_true)**2) < e
E           assert np.float64(1.7801875310424125e-08) < 1e-09
E            +  where np.float64(1.7801875310424125e-08) = <function mean at 0x00000247ED87C6B0>(((array([1.        , 1.00216935, 1.00433659, ..., 2.24035085, 2.24035085,\n       2.24035085]) - array([1.        , 1.00216872, 1.00433364, ..., 2.24035085, 2.24035085,\n       2.24035085])) ** 2))
E            +    where <function mean at 0x00000247ED87C6B0> = np.mean

tests\modules\test_patch_lsi.py:109: AssertionError
Test-Case: test_patch_lsi[solver=runge_kutta4-dt=0.01ms] REPORT_0EA_0573B ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_failure
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_patch_lsi[solver=runge_kutta4-dt=0.01ms]
case_name: test_patch_lsi
case_parameter: solver=runge_kutta4-dt=0.01ms
classname: tests.modules.test_patch_lsi
time: 0.388
result: failure
links outgoing: REPORT, REPORT_0EA

Text:

dt = 1e-05, solver = 'runge_kutta4'

@pytest.mark.parametrize("dt", test_dts, ids=lambda d: f"dt={d*1e3}ms")
@pytest.mark.parametrize("solver", test_solver, ids=lambda d: f"solver={d}")
def test_patch_lsi(dt, solver):
"""
Test elements:
Build Pre-Afterload module
Build Patch
Set parameters of Patch2022
Run 1 beat
"""
l_si_t0 = 1.0

# create, initialize, and run model
order = None

solver_name = solver[:]
if solver_name[-1].isnumeric() and solver_name[-3:-1] == '_o':
order = int(solver_name[-1])
solver_name = solver_name[:-3]
model = circadapt.model.benchmark.Patch(solver_name)

if order is not None:
model.set('Solver.order', order)

model.set('Model.W.P.l_si', l_si_t0)
model.set('Solver.dt', dt)
model.set('Solver.dt_export', dt)

# set Sf_act to zero for verification purposes
model.set('Model.W.P.Sf_act', 0.0)
model['LoadExperiment']['T_afterload'] = 500
model.run(1)

# test model test
>           model.assert_1_beat()

tests\modules\test_patch_lsi.py:88: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Patch>
CircAdapt object with keys:
['General', 'LoadExperiment', 'Patch', 'Solver', 'Wall']
<\Patch>

def assert_1_beat(self):
"""
Test status after 1 beat, used in unit tests.

This function can be tested after creating the model with the
implemented reference and after 1 beat has been calculated. In case
the initial model state deviates from the implemented reference, test
settings might be changed accordingly.

Test for:
l_si == l_si_init  on t=t0
l_se_norm == 1     on t=tend
"""
l_si_t0 = self['Patch']['l_si'][0, 0]
>       assert (l_si_t0 == self.assert_test_settings['l_si_t0'])
E       AssertionError

..\..\.conda\envs\CircAdapt_2407\Lib\site-packages\circadapt\model\benchmark\__init__.py:168: AssertionError
Test-Case: test_valve[solver=adams_bashforth_o2-dt=0.01ms] REPORT_0EA_38ED2 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=adams_bashforth_o2-dt=0.01ms]
case_name: test_valve
case_parameter: solver=adams_bashforth_o2-dt=0.01ms
classname: tests.modules.test_valve
time: 0.031
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=adams_bashforth_o3-dt=0.01ms] REPORT_0EA_C98C1 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=adams_bashforth_o3-dt=0.01ms]
case_name: test_valve
case_parameter: solver=adams_bashforth_o3-dt=0.01ms
classname: tests.modules.test_valve
time: 0.032
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=adams_moulton_o3-dt=0.01ms] REPORT_0EA_78AFD ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=adams_moulton_o3-dt=0.01ms]
case_name: test_valve
case_parameter: solver=adams_moulton_o3-dt=0.01ms
classname: tests.modules.test_valve
time: 0.029
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=adams_moulton_o4-dt=0.01ms] REPORT_0EA_2AA16 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=adams_moulton_o4-dt=0.01ms]
case_name: test_valve
case_parameter: solver=adams_moulton_o4-dt=0.01ms
classname: tests.modules.test_valve
time: 0.041
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=adams_moulton_o5-dt=0.01ms] REPORT_0EA_FD200 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=adams_moulton_o5-dt=0.01ms]
case_name: test_valve
case_parameter: solver=adams_moulton_o5-dt=0.01ms
classname: tests.modules.test_valve
time: 0.032
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=backward_differential_o2-dt=0.01ms] REPORT_0EA_139A5 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=backward_differential_o2-dt=0.01ms]
case_name: test_valve
case_parameter: solver=backward_differential_o2-dt=0.01ms
classname: tests.modules.test_valve
time: 0.04
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=backward_differential_o3-dt=0.01ms] REPORT_0EA_33743 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=backward_differential_o3-dt=0.01ms]
case_name: test_valve
case_parameter: solver=backward_differential_o3-dt=0.01ms
classname: tests.modules.test_valve
time: 0.035
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=forward_euler-dt=0.01ms] REPORT_0EA_752B8 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=forward_euler-dt=0.01ms]
case_name: test_valve
case_parameter: solver=forward_euler-dt=0.01ms
classname: tests.modules.test_valve
time: 0.022
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=backward_euler-dt=0.01ms] REPORT_0EA_C02F2 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=backward_euler-dt=0.01ms]
case_name: test_valve
case_parameter: solver=backward_euler-dt=0.01ms
classname: tests.modules.test_valve
time: 0.033
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=trapezoidal_rule-dt=0.01ms] REPORT_0EA_B25A7 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=trapezoidal_rule-dt=0.01ms]
case_name: test_valve
case_parameter: solver=trapezoidal_rule-dt=0.01ms
classname: tests.modules.test_valve
time: 0.027
result: passed
links outgoing: REPORT, REPORT_0EA
Test-Case: test_valve[solver=runge_kutta4-dt=0.01ms] REPORT_0EA_C4E27 ../_images/arrow-right-circle.svg
tags: REPORT
style: tr_passed
delete: False
jinja_content: False
file: C:\Users\n.vanosta\GitHub\pyCircAdapt\docs\source\../../.pytest/pytest-report.xml
suite: pytest
case: test_valve[solver=runge_kutta4-dt=0.01ms]
case_name: test_valve
case_parameter: solver=runge_kutta4-dt=0.01ms
classname: tests.modules.test_valve
time: 0.033
result: passed
links outgoing: REPORT, REPORT_0EA

Template

The following rst-code is used to generate the report.