Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intensitiy of Cornsweet edges is not exactly as defined in "intensity_edges" #122

Closed
LynnSchmittwilken opened this issue Apr 22, 2024 · 0 comments · Fixed by #123
Closed
Labels
bug Something isn't working

Comments

@LynnSchmittwilken
Copy link
Contributor

Context

Create a Cornsweet edge where edge values are exactly as defined in input parameter "intensity_edges"

Minimal Reproducible Example

from stimupy.stimuli.cornsweets import cornsweet_edge
e = cornsweet_edge(5, 100, ramp_width=0.5)["img"]
print(e.max(), e.min()) # should be [1, 0]

Expected behavior

The minimum and maximum of the stimulus image should exactly be as defined in intensity_edges, which is [1, 0]

Observed behavior

The minimum and maximum of the stimulus image are not [1, 0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant