Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Apr 23, 2024
1 parent cef864d commit d40a8bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stimupy/components/waves.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stimupy/stimuli/gratings.py
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion stimupy/utils/filters.py
Expand Up @@ -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
Expand Down

0 comments on commit d40a8bc

Please sign in to comment.