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

ENH: Add _load_trial_params #53

Merged
merged 1 commit into from
Oct 3, 2024
Merged

ENH: Add _load_trial_params #53

merged 1 commit into from
Oct 3, 2024

Conversation

Jacob-Stevens-Haas
Copy link
Owner

Sometimes its useful to load the exact parameters used in a function.

This function is provisional, as it relies on a hack: dependence between the specific ordering of cells in a created trial source and where to stop executing a trial's source if just loading its parameters. That's a bit of spooky action at a distance.

It also has all the uncertainty of unpickling an object in a different environment/version of python. A better implementation would be to actually pickle the parameters rather than search through the source for the code that creates them.

Thus, this is a WIP

This function is provisional, as it relies on a hack: dependence
between the specific ordering of cells in a created trial source
and where to stop executing a trial's source if just loading its
parameters.
@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit 3fba4a6 into main Oct 3, 2024
6 checks passed
@Jacob-Stevens-Haas Jacob-Stevens-Haas deleted the load-config branch December 6, 2024 21:11
@Jacob-Stevens-Haas Jacob-Stevens-Haas restored the load-config branch December 6, 2024 21:11
@Jacob-Stevens-Haas Jacob-Stevens-Haas deleted the load-config branch December 6, 2024 21:12
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

Successfully merging this pull request may close these issues.

1 participant