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

control over amplitude distribution #143

Open
bendichter opened this issue May 10, 2023 · 1 comment
Open

control over amplitude distribution #143

bendichter opened this issue May 10, 2023 · 1 comment

Comments

@bendichter
Copy link

Request by Liam Paninski

@alejoe91
Copy link
Member

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.

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