-
Notifications
You must be signed in to change notification settings - Fork 15
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
Pass horizon as Period in transform_single_time_series #90
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,7 +253,7 @@ function build_5_bus_hydro_uc_sys(; add_forecasts, raw_data, sys_kwargs...) | |
time_series_in_memory = true, | ||
sys_kwargs..., | ||
) | ||
PSY.transform_single_time_series!(c_sys5_hy_uc, 24, Hour(24)) | ||
PSY.transform_single_time_series!(c_sys5_hy_uc, Hour(24), Hour(24)) | ||
else | ||
c_sys5_hy_uc = PSY.System(rawsys; sys_kwargs...) | ||
end | ||
|
@@ -280,7 +280,7 @@ function build_5_bus_hydro_uc_sys_targets(; add_forecasts, raw_data, sys_kwargs. | |
time_series_in_memory = true, | ||
sys_kwargs..., | ||
) | ||
PSY.transform_single_time_series!(c_sys5_hy_uc, 24, Hour(24)) | ||
PSY.transform_single_time_series!(c_sys5_hy_uc, Hour(24), Hour(24)) | ||
else | ||
c_sys5_hy_uc = PSY.System(rawsys; sys_kwargs...) | ||
end | ||
|
@@ -310,7 +310,7 @@ function build_5_bus_hydro_ed_sys(; raw_data, kwargs...) | |
time_series_in_memory = true, | ||
sys_kwargs..., | ||
) | ||
PSY.transform_single_time_series!(c_sys5_hy_ed, 12, Hour(1)) | ||
PSY.transform_single_time_series!(c_sys5_hy_ed, Hour(12), Hour(1)) | ||
|
||
return c_sys5_hy_ed | ||
end | ||
|
@@ -338,7 +338,7 @@ function build_5_bus_hydro_ed_sys_targets(; raw_data, kwargs...) | |
for hy in get_components(HydroEnergyReservoir, c_sys5_hy_ed) | ||
set_operation_cost!(hy, cost) | ||
end | ||
PSY.transform_single_time_series!(c_sys5_hy_ed, 12, Hour(1)) | ||
PSY.transform_single_time_series!(c_sys5_hy_ed, Hour(12), Hour(1)) | ||
|
||
return c_sys5_hy_ed | ||
end | ||
|
@@ -362,7 +362,7 @@ function build_5_bus_hydro_wk_sys(; raw_data, kwargs...) | |
time_series_in_memory = true, | ||
sys_kwargs..., | ||
) | ||
PSY.transform_single_time_series!(c_sys5_hy_wk, 2, Hour(48)) | ||
PSY.transform_single_time_series!(c_sys5_hy_wk, Hour(2), Hour(48)) | ||
|
||
return c_sys5_hy_wk | ||
end | ||
|
@@ -390,7 +390,7 @@ function build_5_bus_hydro_wk_sys_targets(; raw_data, kwargs...) | |
for hy in get_components(HydroEnergyReservoir, c_sys5_hy_wk) | ||
set_operation_cost!(hy, cost) | ||
end | ||
PSY.transform_single_time_series!(c_sys5_hy_wk, 2, Hour(48)) | ||
PSY.transform_single_time_series!(c_sys5_hy_wk, Hour(2), Hour(48)) | ||
|
||
return c_sys5_hy_wk | ||
end | ||
|
@@ -409,7 +409,7 @@ function build_RTS_GMLC_DA_sys(; raw_data, kwargs...) | |
resolution = get(sys_kwargs, :time_series_resolution, Dates.Hour(1)) | ||
sys = PSY.System(rawsys; time_series_resolution = resolution, sys_kwargs...) | ||
interval = get(sys_kwargs, :interval, Dates.Hour(24)) | ||
horizon = get(sys_kwargs, :horizon, 48) | ||
horizon = Hour(get(sys_kwargs, :horizon, 48)) | ||
PSY.transform_single_time_series!(sys, horizon, interval) | ||
return sys | ||
end | ||
|
@@ -428,7 +428,7 @@ function build_RTS_GMLC_RT_sys(; raw_data, kwargs...) | |
resolution = get(sys_kwargs, :time_series_resolution, Dates.Minute(5)) | ||
sys = PSY.System(rawsys; time_series_resolution = resolution, sys_kwargs...) | ||
interval = get(sys_kwargs, :interval, Dates.Minute(5)) | ||
horizon = get(sys_kwargs, :horizon, 24) | ||
horizon = Hour(get(sys_kwargs, :horizon, 24)) | ||
PSY.transform_single_time_series!(sys, horizon, interval) | ||
return sys | ||
end | ||
|
@@ -591,7 +591,7 @@ end | |
|
||
function build_modified_RTS_GMLC_DA_sys(; kwargs...) | ||
sys = make_modified_RTS_GMLC_sys(; kwargs...) | ||
PSY.transform_single_time_series!(sys, 48, Hour(24)) | ||
PSY.transform_single_time_series!(sys, Hour(48), Hour(24)) | ||
return sys | ||
end | ||
|
||
|
@@ -616,7 +616,7 @@ end | |
|
||
function build_modified_RTS_GMLC_RT_sys(; kwargs...) | ||
sys = build_modified_RTS_GMLC_realization_sys(; kwargs...) | ||
PSY.transform_single_time_series!(sys, 12, Minute(15)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jd-lara Was this change correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
PSY.transform_single_time_series!(sys, Hour(12), Minute(15)) | ||
return sys | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@GabrielKS this should be
Hour(1)
. My bad when I did the review