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

Allow base scenario as scenario instance #299

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

e-lo
Copy link
Collaborator

@e-lo e-lo commented Apr 22, 2022

Closes #298 to allow base scenario be a scenario instance.

Also includes various updates/fixes to typehints/docstrings in scenario.py and PEP8 updates.

Tested via: test_scenario_initialization()

Fixes #298

- Adds better/more accurate variable documentation and type-hinting
- Adds test test_scenario_initialization()
@e-lo e-lo added the enhancement New feature or request label Apr 22, 2022
@e-lo e-lo added this to the v1.0 milestone Apr 22, 2022
@e-lo e-lo self-assigned this Apr 22, 2022
@e-lo e-lo removed the request for review from i-am-sijia April 25, 2022 17:24
Copy link
Member

@DavidOry DavidOry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. There are a lot of changes here, only a few related to allowing the base_scenario to be a scenario. Can we move the formatting and file moves to a separate PR? (This may not be a good use of our time with the current state of things, but worth asking).
  2. Creating a default value for a new variable also seems to be a separate action. Can that be moved to a separate PR as well? (Same comment about it may not be worth it)
  3. I see a test using the Scenario constructor, but not one with the static create_scenario method. Can we add one with create_scenario? This is what Met Council has been using.

@e-lo e-lo changed the base branch from master to develop March 2, 2023 01:19
@e-lo e-lo marked this pull request as draft June 26, 2023 17:23
@e-lo
Copy link
Collaborator Author

e-lo commented Jun 26, 2023

Need to review to see if overlapping with big PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Initialize scenario with base scenario as Scenario instance not just dictionary
2 participants