MEArec icon indicating copy to clipboard operation
MEArec copied to clipboard

control over amplitude distribution

Open bendichter opened this issue 2 years ago • 1 comments

Request by Liam Paninski

bendichter avatar May 10 '23 13:05 bendichter

Thanks @bendichter

@colehurwitz The way one can control amplitude distribution i(or anything else) is the following:

# load templates
tempgen = mr.load_templates("path-to-h5")

# define a custom way to select the templates you want, e.g. by imposing amplitude distributions, locations, etc
templates = tempgen.templates
my_template_ids = my_function_to_select_template_idxs(templates)

# generate the recording with the pre-selected templates
recgen = mr.generate_recording(tempgen=tempgen, params=your_params, template_ids=my_template_ids)

This will skip the internal template selection and directly use the provided template indices.

alejoe91 avatar May 13 '23 15:05 alejoe91