Skip to content
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

Add support for subsystems #1047

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

daniel-thom
Copy link
Contributor

This requires InfrastructureSystems code from NREL-Sienna/InfrastructureSystems.jl#326. So, CI will fail.

Copy link
Member

@jd-lara jd-lara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me and the functionality is what we can cover without the implementation in PowerSimulations. I think that we can merge this branch and work in subsequent PR's if new issues come to light.

@tengis-nrl can also open PRs with the testing data to increase the confidence in this code.

src/subsystems.jl Outdated Show resolved Hide resolved

"""
Return a Generator of all components in the subsystem.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we missing some code here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Management of subsystems occurs in the InfrastructureSystems (IS) layer. We implement storage of components and related objects in this sub-package so that other packages can benefit from the logic. The real function is here: https://github.com/daniel-thom/InfrastructureSystems.jl/blob/subsystems/src/subsystems.jl#L74

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jd-lara jd-lara linked an issue Feb 6, 2024 that may be closed by this pull request
@jd-lara jd-lara merged commit 8428fe4 into NREL-Sienna:psy4 Feb 6, 2024
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable use of subsystems in get_components
3 participants