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

Prevent parameters from being edited #177

Closed
jmccreight opened this issue May 12, 2023 · 0 comments · Fixed by #183
Closed

Prevent parameters from being edited #177

jmccreight opened this issue May 12, 2023 · 0 comments · Fixed by #183
Milestone

Comments

@jmccreight
Copy link
Member

Currently reused parameter instances cause errors in the channel network.

My ethos is that parameters should not be edited in the dark, hidden corners of the code. They should be edited as preprocessing so that they can be provenanced with the results.

My prefered approach to this problem is currently to freeze/imutablize parameter data. Two approaches
https://adamj.eu/tech/2022/01/05/how-to-make-immutable-dict-in-python/
https://pypi.org/project/frozendict/

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 a pull request may close this issue.

1 participant