Skip to content

Commit

Permalink
Fix linting (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy authored Jun 18, 2024
1 parent fc191bf commit d57ff37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sleplet/plot_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _normalise_function(
# if all 0, set to 0
return f + 0.5
# if all non-zero, set to 1 otherwise scale from [0, 1]
return f / f.max() if np.allclose(f, f.max()) else (f - f.min()) / f.ptp()
return f / f.max() if np.allclose(f, f.max()) else (f - f.min()) / np.ptp(f)


def _boost_field( # noqa: PLR0913
Expand Down

0 comments on commit d57ff37

Please sign in to comment.