-
Notifications
You must be signed in to change notification settings - Fork 40
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
Specify grid model when creating scenario #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clean.
While we're updating |
I had to do further modifications after realizing that the |
You are right. But I think it will work. I won't have time to think about refactoring until next week. |
There is no rush, there is only one grid as of now. We can think about it for some time. Perhaps @jon-hagg can help us finding a better design in the coming weeks. |
I would suggest making the current builders for concrete classes (Texas, Western, etc) available for |
Do we even really need different Builder sub-classes for the different interconnects? All object behave identically, with the only difference being their |
It's been a while. I forgot the reason how we came up with the current design. @rouille must have a better idea on this. |
8086a00
to
31cfb0b
Compare
I close this since we will tackle this in #344 |
Purpose
Set grid model during the building phase of a scenario (#84)
What the code is doing
A
set_grid_model
method in theCreate
class allows to set the grid model. If not called thegrid_model
key of thescenario_info
dictionary is set tousa_tamu
. When thecreate scenario
method of theCreate
class is called thegrid_model
field (located betweenengine
andruntime
) in the *ScenarioList file will be set.Testing
We will create/launch/extract a dummy scenario
Where to look
powersimdata.scenario.create
module where theset_grid_model
method can be called and thescenario_info
dictionary is filled.powersimdata.scenario.execute
module where theGrid
class is instantiated using thegrid_model
key of thescenario_info
dictionary.Time estimate
15min. It mirrors what we did to set the engine
Note
We will have before testing to add a new
grid_model
column to the *ScenarioList file and setusa_tamu
as value for all existing scenario