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

Creating drifting gratings (frame by frame) #2739

Open
SalvoCalcagno opened this issue Dec 27, 2023 · 0 comments
Open

Creating drifting gratings (frame by frame) #2739

SalvoCalcagno opened this issue Dec 27, 2023 · 0 comments
Labels

Comments

@SalvoCalcagno
Copy link

According to the information provided at https://alleninstitute.github.io/AllenSDK/_static/examples/nb/brain_observatory_monitor.html, static gratings can be generated using the grating_to_screen method, which depends on allensdk.brain_observatory.stimulus_info.get_spatial_grating.

Following this logic, drifting gratings can be created by generating static gratings with different phases. This can be accomplished using the allensdk.brain_observatory.stimulus_info.get_spatio_temporal_grating method, which accepts a float timepoint (t) and the temporal frequency.

To achieve a correct presentation of the drifting gratings stimulus, it is important to understand how to use the tt parameter. What is the range of t, and how does it vary during the presentation of the stimulus (i.e., at each frame)? My hypothesis is that t is a number between 0 and 1, and its values are spaced on a 1/30 basis. Is this hypothesis correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant