From d40a8bca4b2b9d8282065232814c5b5305e46ef8 Mon Sep 17 00:00:00 2001 From: Joris Vincent Date: Tue, 23 Apr 2024 13:15:59 +0200 Subject: [PATCH] chore: linting --- stimupy/components/waves.py | 2 +- stimupy/stimuli/gratings.py | 2 +- stimupy/utils/filters.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stimupy/components/waves.py b/stimupy/components/waves.py index e67ee60d..abbb61b0 100644 --- a/stimupy/components/waves.py +++ b/stimupy/components/waves.py @@ -180,7 +180,7 @@ def resolve_grating_params( # Check that frequency does not exceed Nyquist limit: if frequency > (ppd / 2): raise ValueError( - f"Grating frequency ({frequency}) should not exceed Nyquist limit {ppd/2} (ppd/2)" + f"Grating frequency ({frequency}) should not exceed Nyquist limit {ppd / 2} (ppd/2)" ) # Accumulate edges of phases (rounding to avoid accumulation of diff --git a/stimupy/stimuli/gratings.py b/stimupy/stimuli/gratings.py index 80000248..411d7484 100644 --- a/stimupy/stimuli/gratings.py +++ b/stimupy/stimuli/gratings.py @@ -316,7 +316,7 @@ def phase_shifted( if target_shift != int(target_shift): s = np.sign(target_phase_shift) - warnings.warn(f"Rounding phase; {target_phase_shift} -> {s*target_phasei}") + warnings.warn(f"Rounding phase; {target_phase_shift} -> {s * target_phasei}") # Shift targets by specified phase cy, cx = stim["shape"] diff --git a/stimupy/utils/filters.py b/stimupy/utils/filters.py index a7ef54cb..9ceabab7 100644 --- a/stimupy/utils/filters.py +++ b/stimupy/utils/filters.py @@ -87,7 +87,7 @@ def bandpass( if center_frequency > (min(ppd) / 2): raise ValueError( - f"Center frequency ({center_frequency}) should not exceed Nyquist limit {min(ppd)/2} (ppd/2)" + f"Center frequency ({center_frequency}) should not exceed Nyquist limit {min(ppd) / 2} (ppd/2)" ) # Create frequency axes