Skip to content

Commit

Permalink
Fix wrong tiny value
Browse files Browse the repository at this point in the history
  • Loading branch information
wmvanvliet committed May 17, 2024
1 parent cf0e12d commit 043ba28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/viz/_brain/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -4161,7 +4161,7 @@ def _get_range(brain):
if 1e-02 <= fmax <= 1e02:
fscale_power = 0
else:
fscale_power = int(np.log10(max(fmax, np.finfo("float32").min)))
fscale_power = int(np.log10(max(fmax, np.finfo("float32").smallest_normal)))
if fscale_power < 0:
fscale_power -= 1
fscale = 10**-fscale_power
Expand Down

0 comments on commit 043ba28

Please sign in to comment.