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

Protect settings and variables #17

Closed
dionhaefner opened this issue Nov 28, 2017 · 0 comments
Closed

Protect settings and variables #17

dionhaefner opened this issue Nov 28, 2017 · 0 comments
Projects

Comments

@dionhaefner
Copy link
Collaborator

Currently, all settings and variables can be overridden at any time. This might cause subtle bugs, both from inside Veros core routines (e.g. when assigning directly to an array instead of updating its values), setups, or even higher-level code.

It may be worth considering protecting variables from being set to entirely new objects (e.g. by overloading setitem in the Veros class). An equivalent check could be made for settings that cannot be safely changed after setup (this should at least warrant a warning).

@dionhaefner dionhaefner added this to To do in Veros 3.0 Nov 28, 2019
@dionhaefner dionhaefner moved this from To do to In progress in Veros 3.0 Aug 28, 2020
@dionhaefner dionhaefner moved this from In progress to Done in Veros 3.0 Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Veros 3.0
  
Done
Development

No branches or pull requests

1 participant