Skip to content

Commit aa88f11

Browse files
committed
added default saliva params to TSST
1 parent e4634f8 commit aa88f11

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/biopsykit/protocols/tsst.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def __init__(
8181
structure = {"Part1": None, "TSST": {"Preparation": 300, "Talk": 300, "Math": 300}, "Part2": None}
8282

8383
test_times = kwargs.pop("test_times", [0, 15])
84+
saliva_plot_params = {"test_title": "TSST", "xlabel": "Time relative to TSST start [min]"}
85+
saliva_plot_params.update(kwargs.pop("saliva_plot_params", {}))
8486

85-
super().__init__(name=name, structure=structure, test_times=test_times, **kwargs)
87+
kwargs.update({"saliva_plot_params": saliva_plot_params})
8688

87-
self.saliva_plot_params.update({"test_title": "TSST", "xlabel": "Time relative to TSST start [min]"})
89+
super().__init__(name=name, structure=structure, test_times=test_times, **kwargs)

0 commit comments

Comments
 (0)