Skip to content

Commit

Permalink
Rename components.edges-functions
Browse files Browse the repository at this point in the history
Now all `edges.step()` etc.
  • Loading branch information
JorisVincent committed Mar 23, 2023
1 parent 2cfc77d commit f33113a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions stimupy/components/edges.py
Expand Up @@ -5,13 +5,13 @@
from stimupy.components import gaussians, image_base

__all__ = [
"step_edge",
"gaussian_edge",
"cornsweet_edge",
"step",
"gaussian",
"cornsweet",
]


def step_edge(
def step(
visual_size=None,
ppd=None,
shape=None,
Expand Down Expand Up @@ -67,7 +67,7 @@ def step_edge(
return stim


def gaussian_edge(
def gaussian(
visual_size=None,
ppd=None,
shape=None,
Expand Down Expand Up @@ -105,7 +105,7 @@ def gaussian_edge(
if sigma is None:
raise ValueError("gaussian_edge() missing argument 'sigma' which is not 'None'")

stim = step_edge(
stim = step(
visual_size=visual_size,
ppd=ppd,
shape=shape,
Expand All @@ -129,7 +129,7 @@ def gaussian_edge(
return stim


def cornsweet_edge(
def cornsweet(
visual_size=None,
ppd=None,
shape=None,
Expand Down
2 changes: 1 addition & 1 deletion stimupy/papers/modelfest.py
Expand Up @@ -39,7 +39,7 @@

from stimupy import checkerboards
from stimupy.components import gaussians, lines, shapes
from stimupy.components.edges import gaussian_edge
from stimupy.components.edges import gaussian as gaussian_edge
from stimupy.components.waves import bessel
from stimupy.noises.binaries import binary as binary_noise
from stimupy.stimuli.gabors import gabor
Expand Down
2 changes: 1 addition & 1 deletion stimupy/stimuli/cornsweets.py
@@ -1,6 +1,6 @@
import numpy as np

from stimupy.components.edges import cornsweet_edge
from stimupy.components.edges import cornsweet as cornsweet_edge

__all__ = [
"cornsweet",
Expand Down

0 comments on commit f33113a

Please sign in to comment.