Skip to content

Commit

Permalink
chore: autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Sep 12, 2023
1 parent 92c9e1b commit 95ccba7
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ repos:
hooks:
- id: flake8
# Ignore all format-related checks as Black takes care of those.
args: ["--ignore", "E2,W5,E501,F403", "--select", "E,W,F", '--per-file-ignores=__init__.py:F401,F405,E402', '--exclude','tests/*']
args: ["--ignore", "E203,E501,W503,F403", "--select", "E,W,F", '--per-file-ignores=__init__.py:F401,F405,E402', '--exclude','tests/*']
3 changes: 2 additions & 1 deletion stimupy/components/gaussians.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def overview(**kwargs):

# fmt: off
stimuli = {
"gaussians_gaussian": gaussian(**default_params, sigma=(3, 1.5), rotation=70),}
"gaussians_gaussian": gaussian(**default_params, sigma=(3, 1.5), rotation=70),
}
# fmt: on

return stimuli
Expand Down
3 changes: 2 additions & 1 deletion stimupy/components/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def overview(**kwargs):
"lines_line": line(**default_params, **p, origin="center"),
"lines_dipole": dipole(**default_params, **p, line_gap=1),
"lines_circle": circle(**default_params, radius=3),
"lines_ellipse": ellipse(**default_params, radius=(3, 4)),}
"lines_ellipse": ellipse(**default_params, radius=(3, 4)),
}
# fmt: on

return stimuli
Expand Down
3 changes: 2 additions & 1 deletion stimupy/components/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ def overview(**kwargs):
"shapes_disc": disc(**default_params, radius=3),
"shapes_ring": ring(**default_params, radii=(1, 2)),
"shapes_annulus": annulus(**default_params, radii=(1, 2)),
"shapes_wedge": wedge(**default_params, angle=30, radius=4),}
"shapes_wedge": wedge(**default_params, angle=30, radius=4),
}
# fmt: on

return stimuli
Expand Down
2 changes: 1 addition & 1 deletion stimupy/logos.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def qrcode(ppd=128):
embeded_image=im_logo,
)

## Make "eyes" circular
# Make "eyes" circular
eye_size = 70 # default
quiet_zone = 40 # default

Expand Down
3 changes: 2 additions & 1 deletion stimupy/noises/binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def overview(**kwargs):

# fmt: off
stimuli = {
"binaries_binary": binary(**default_params),}
"binaries_binary": binary(**default_params),
}
# fmt: on

return stimuli
Expand Down
5 changes: 3 additions & 2 deletions stimupy/noises/narrowbands.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np

from stimupy.noises import pseudo_white_spectrum
from stimupy.utils import resolution, bandpass
from stimupy.utils import bandpass, resolution
from stimupy.utils.contrast_conversions import adapt_intensity_range

__all__ = [
Expand Down Expand Up @@ -107,7 +107,8 @@ def overview(**kwargs):
# fmt: off
stimuli = {
"narrowbands_narrowband3": narrowband(**default_params, center_frequency=3, bandwidth=1),
"narrowbands_narrowband9": narrowband(**default_params, center_frequency=9, bandwidth=1),}
"narrowbands_narrowband9": narrowband(**default_params, center_frequency=9, bandwidth=1),
}
# fmt: on

return stimuli
Expand Down
3 changes: 2 additions & 1 deletion stimupy/noises/naturals.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def overview(**kwargs):
stimuli = {
"naturals_one-over-f": one_over_f(**default_params, exponent=0.5),
"naturals_pink": pink(**default_params),
"naturals_brown": brown(**default_params),}
"naturals_brown": brown(**default_params),
}
# fmt: on

return stimuli
Expand Down
3 changes: 2 additions & 1 deletion stimupy/noises/whites.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def overview(**kwargs):

# fmt: off
stimuli = {
"whites_white": white(**default_params),}
"whites_white": white(**default_params),
}
# fmt: on

return stimuli
Expand Down
4 changes: 2 additions & 2 deletions stimupy/stimuli/cubes.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def overview(**kwargs):

# fmt: off
stimuli = {
"cubes_regular": cube(**default_params, visual_size=10, n_cells=5, target_indices=(1,2)),
"cubes_variable": varying_cells(**default_params, cell_lengths=(2,4,2), target_indices=1),
"cubes_regular": cube(**default_params, visual_size=10, n_cells=5, target_indices=(1, 2)),
"cubes_variable": varying_cells(**default_params, cell_lengths=(2, 4, 2), target_indices=1),
}
# fmt: on

Expand Down
2 changes: 1 addition & 1 deletion stimupy/stimuli/sbcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def overview(**kwargs):

# fmt: off
stimuli = {
"sbc_generalized": generalized(**default_params, visual_size=10, target_size=(3,4), target_position=(1, 2)),
"sbc_generalized": generalized(**default_params, visual_size=10, target_size=(3, 4), target_position=(1, 2)),
"sbc_basic": basic(**default_params, visual_size=10, target_size=3),
"sbc_2sided": two_sided(**default_params, visual_size=10, target_size=2),
"sbc_with_dots": with_dots(**default_params, n_dots=5, dot_radius=2, distance=0.5, target_shape=3),
Expand Down
2 changes: 1 addition & 1 deletion stimupy/stimuli/wedding_cakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def overview(**kwargs):
# fmt: off
stimuli = {
"wedding_cake": wedding_cake(**default_params,
L_size= (4, 3, 1),
L_size=(4, 3, 1),
target_height=1,
target_indices1=((2, 2), (2, 1)),
target_indices2=((2, -1), (2, 0)),
Expand Down

0 comments on commit 95ccba7

Please sign in to comment.