Skip to content

Commit

Permalink
Better logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Dec 8, 2021
1 parent 3a209df commit cbc14e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ def _compute_scalings(scalings, inst, remove_dc=False, duration=10):
raise ValueError('Must supply either Raw or Epochs')

for key, value in scalings.items():
if isinstance(value, str) and value != 'auto':
if value != 'auto' and not isinstance(value, float):
try:
scalings[key] = float(value)
except Exception:
Expand Down

0 comments on commit cbc14e8

Please sign in to comment.