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

state guard for set definitions #22

Merged

Conversation

ipelupessy
Copy link
Member

proposed state guard for set (grids, particle sets etc) definitions in code, along the lines of:

object.define_grid('forcings',axes_names = axes_names, state_guard="before_new_set_instance")

currently there is no default, because setting a default "before_new_set_instance" method doesn't work with test_interface.py (wants a before_new_set_instance it in InCodeComponentImplementation, while a normal code will fail in that case (something with the state model)

ipelupessy added a commit that referenced this pull request Dec 4, 2015
state guard for set definitions
I am closing, it works, leave the issue with the state model for later
@ipelupessy ipelupessy merged commit 60434a6 into amusecode:master Dec 4, 2015
@ipelupessy ipelupessy deleted the state_guard_for_grid_definitions branch December 4, 2015 11:39
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.

2 participants