-
Notifications
You must be signed in to change notification settings - Fork 0
add stubs for 2 edge cases where need PSY bus types #88
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
Open
luke-kiernan
wants to merge
4
commits into
main
Choose a base branch
from
lk/pom-test-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
cefadf1
add stubs for 2 edge cases where need PSY bus types
luke-kiernan 46c5204
Route system queries through extension-point stubs (fixes #87)
luke-kiernan 6ffcbe7
helpers for hydro/storage POM fixes
luke-kiernan 9ccee62
check_time_series_consistency
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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -145,6 +145,40 @@ For thermals, equivalent to `get_must_run`, but that implementation belongs in P | |
| """ | ||
| skip_proportional_cost(d::IS.InfrastructureSystemsComponent) = false | ||
|
|
||
| ############################### | ||
| #### System query stubs ####### | ||
| ############################### | ||
| # Extension points for querying a system object. POM provides methods for | ||
| # PSY.System; tests provide methods for MockSystem. IOM itself never accesses | ||
| # sys.data. | ||
|
|
||
| "Extension point: time-series resolutions available on the system." | ||
| function get_time_series_resolutions end | ||
|
|
||
| "Extension point: counts summary of time series on the system." | ||
| function get_time_series_counts end | ||
|
|
||
| "Extension point: counts by component type of time series on the system." | ||
| function get_time_series_counts_by_type end | ||
|
|
||
| "Extension point: forecast interval configured on the system." | ||
| function get_forecast_interval end | ||
|
|
||
| "Extension point: forecast horizon configured on the system." | ||
| function get_forecast_horizon end | ||
|
luke-kiernan marked this conversation as resolved.
|
||
|
|
||
| "Extension point: summary table of forecasts on the system." | ||
| function get_forecast_summary_table end | ||
|
|
||
| "Extension point: transform single time series into deterministic forecasts on the system." | ||
| function transform_single_time_series! end | ||
|
|
||
|
Comment on lines
+156
to
+175
Member
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. I think several of these will cause name clashes with IS no ? Or are methods that should live in IS |
||
| "Extension point: stable UUID for the system (used as a filename identifier)." | ||
| function get_system_uuid end | ||
|
|
||
| "Extension point: get components of type `T` in a subsystem of the system." | ||
| function get_subsystem_components end | ||
|
|
||
| ############################### | ||
| ###### Start-up Cost ########## | ||
| ############################### | ||
|
|
@@ -245,3 +279,15 @@ Only called in `emulation_model.jl`: that file's contents and this function shou | |
| likely be moved to POM or PSI. | ||
| """ | ||
| function update_container_parameter_values! end | ||
|
|
||
| """ | ||
| Component type associated with network duals. Returns ACBus when passed in `nothing`. | ||
| Only called in a single spot in `add_constraint_dual!` for the network model. | ||
| """ | ||
| function component_for_network_dual end | ||
|
|
||
| """ | ||
| Component type associated with hvdc interpolation constraints. Returns DCBus when passed in | ||
| `nothing`. Only called in a single spot in `incremental.jl`. | ||
| """ | ||
| function component_for_hvdc_interpolation end | ||
|
luke-kiernan marked this conversation as resolved.
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.