Skip to content

Commit 3b38264

Browse files
committed
Add functional test for mdn plotting
1 parent 2a0f156 commit 3b38264

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/test_mdn_filter.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,14 @@ def test_kwargs(draeger1: Sequence):
276276
filtered_data = mdn_filter.apply(eit_data, label="Filtered EIT Data")
277277

278278
assert filtered_data.label == "Filtered EIT Data"
279+
280+
281+
def test_plot_filter_effects(draeger1: Sequence):
282+
"""This test only checks that the plotting function runs without error."""
283+
impedance = draeger1.continuous_data["global_impedance_(raw)"]
284+
mdn_filter = MDNFilter(
285+
respiratory_rate=10 / MINUTE,
286+
heart_rate=80 / MINUTE,
287+
)
288+
mdn_filter.apply(impedance, captures=(captures := {}))
289+
mdn_filter.plotting.plot_results(**captures)

0 commit comments

Comments
 (0)