[bugfix] warn threshold type check had wrong parentheses

This commit is contained in:
Marcel Paffrath 2023-12-18 15:11:02 +01:00
parent 08b12aeb9d
commit 20b586f96b

View File

@ -244,5 +244,5 @@ def plot_threshold_lines(fig, channel_threshold_list, parameters, **kwargs):
for warn_thresh in channel_thresholds:
if isinstance(warn_thresh, str):
warn_thresh = parameters.get('THRESHOLDS').get(warn_thresh)
if type(warn_thresh in (float, int)):
if isinstance(warn_thresh, (float, int)):
ax.axhline(warn_thresh, **kwargs)