[bugfix] warn threshold type check had wrong parentheses
This commit is contained in:
parent
08b12aeb9d
commit
20b586f96b
2
utils.py
2
utils.py
@ -244,5 +244,5 @@ def plot_threshold_lines(fig, channel_threshold_list, parameters, **kwargs):
|
|||||||
for warn_thresh in channel_thresholds:
|
for warn_thresh in channel_thresholds:
|
||||||
if isinstance(warn_thresh, str):
|
if isinstance(warn_thresh, str):
|
||||||
warn_thresh = parameters.get('THRESHOLDS').get(warn_thresh)
|
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)
|
ax.axhline(warn_thresh, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user