-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dsc/psy2pras cleanup #25
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.
- We should move that time series logic to a separate function.
- I would still prefer to avoid removing or adding any components to the system.
PSY.set_prime_mover_type!(temp_lumped_wind_gen, PSY.PrimeMovers.WT) | ||
ext = PSY.get_ext(temp_lumped_wind_gen) | ||
ext["region_gen_ts"] = | ||
round.( |
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.
We should be able to turn this rounding procedure into a proper function.
PSY.set_rating!(temp_lumped_wind_gen, maximum(ext["region_gen_ts"])) | ||
PSY.add_component!(sys, temp_lumped_wind_gen) | ||
for comp in wind_gs | ||
PSY.remove_component!(sys, comp) |
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.
Why are we removing this component? Can't we just create the appropriate generator from the new lumped one without having to add it to the system?
@@ -891,7 +852,7 @@ function generate_pras_system( | |||
|
|||
@info "The Sienna/Data PowerSystems System is being de-serialized from the System JSON ..." | |||
sys = try | |||
PSY.System(sys_location; time_series_read_only=true, runchecks=false) | |||
PSY.System(sys_location; runchecks=false) |
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.
Why was this necessary?
All the tests pass locally but we might have to discuss including a test which cpatures the failure of luming logic (we can discuss more after you review this)