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

supplying the stimulus information for raster_plot.py #66

Open
liangmingli opened this issue Jun 16, 2022 · 2 comments
Open

supplying the stimulus information for raster_plot.py #66

liangmingli opened this issue Jun 16, 2022 · 2 comments

Comments

@liangmingli
Copy link

Hi Johannes, I was trying to correctly configure the raster_options variable in options.py for raster plots. It looks like I should supply a dataframe with the following columns:
stim_num
stim_name
filename
paradigm
daytime

But I am not sure where in the combinato workflow I should supply this information. Should I import the dataframe from a csv file? If possible, would you mind providing a template csv so I could borrow from you. Thank you in advance for your help!!

@liangmingli
Copy link
Author

liangmingli commented Jun 24, 2022

I figure out a way to use the rasterplot function, and the details are below

  1. in options.py, set 'RunGuiWithRaster' = True
  2. in options.py, set raster_options= {'frame_name':'raster_test.csv','meta_prefix':'stimuli_images'}
  3. in raster_figure.py, edit get_stim_info() and get_onset_times() change get_values to to_numpy()
  4. in sorter.py edit line 143 image_path = meta_prefix
  5. in sorted.py, edit line 140 frame = pd.read_csv(raster_options['frame_name'])

Then, in your data folder, supply the following .csv file with the following columns

stim_num, stim_name, filename, paradigm, time

note that paradigm can be only from two categories: either nscr, or scr. NSCR means you dont want to print your stimuli picture on the raster plots, and SCR means you want to.

image

@jniediek
Copy link
Owner

Hi @liangmingli , I'm sorry that I didn't get to this in time. Is your solution working for you now? Any other help needed?

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

No branches or pull requests

2 participants