-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make (old) PowerAnalytics work with PSY4 #22
Conversation
Co-authored-by: Jose Daniel Lara <[email protected]>
The simulation and all old PA tests pass now, at the cost of removing simulation of hydro. The two patches above are still required. |
my_resolution = first(keys).resolution | ||
if isnothing(resolution) | ||
resolution = my_resolution | ||
len = (horizon isa Dates.Period) ? Int64(horizon / resolution) : horizon |
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 have methods in PSY to handle this, horizon us now always a period
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.
Is there a way to get_time_series_values
passing in a Period
?
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.
Update the time series handling using PSY4 correctly.
@daniel-thom is there a way to get a subset of a time series using a horizon |
Nope, we missed this one. You can only pass horizon_count as |
Draft, the simulation that generates test data is still failing. I'm using the following patches to get this far:
HydroPowerSimulations.jl/src/hydro_generation.jl
(this one should probably be committed):PowerSystems.jl/src/models/cost_functions/StorageCost.jl
(this one is just a kludge until something gets updated in PSI):