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

Simplify calls to State methods from Scenario object #418

Closed
danielolsen opened this issue Mar 18, 2021 · 0 comments · Fixed by #420
Closed

Simplify calls to State methods from Scenario object #418

danielolsen opened this issue Mar 18, 2021 · 0 comments · Fixed by #420
Assignees
Labels
refactor Code that is being refactored

Comments

@danielolsen
Copy link
Contributor

Currently, any calls to methods of the Scenario's state attribute (an instance of a State child class) need to be used as e.g. scenario.state.create_scenario(), scenario.state.launch_simulation(). It would be nice if the user didn't have to think about the state, and could simply call scenario.create_scenario() or scenario.launch_simulation(), while all of the same underlying logic is maintained (i.e., calling a method for a state that the Scenario is not in still gives an error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code that is being refactored
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants