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

Serialize System components to HDF5 #1062

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

daniel-thom
Copy link
Contributor

Objective: The simulations postprocessing code in PowerAnalytics.jl needs to have access to the systems used by the simulations. Those systems are not serialized if the user opts out of that feature. Ensure that these are always available.

This is the PowerSimulations portion of the solution. I added comparable branches in PowerSystems.jl and InfrastructureSystems.jl. Let me know if the interfaces here meet your needs and then I’ll open sibling PRs.

@@ -704,3 +730,26 @@ end
test_simulation_results(file_path, export_path; in_memory = in_memory)
end
end

@testset "Test simulation results with system from store" begin
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The changes in this file are minor. I had to shuffle things around so that I could test the new code here.

Copy link
Contributor

@GabrielKS GabrielKS left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me besides the comment about the get_system! kwarg.

src/simulation/simulation_problem_results.jl Outdated Show resolved Hide resolved
@jd-lara jd-lara self-assigned this Feb 29, 2024
@jd-lara
Copy link
Member

jd-lara commented Feb 29, 2024

@daniel-thom run the formatter to merge

@daniel-thom daniel-thom force-pushed the serialize-everything-but-time-series branch from 4029b78 to 6ff0a6f Compare February 29, 2024 18:40
@daniel-thom
Copy link
Contributor Author

@daniel-thom run the formatter to merge

Done

@jd-lara jd-lara merged commit 0f50321 into psy4 Feb 29, 2024
1 of 6 checks passed
daniel-thom added a commit that referenced this pull request Mar 6, 2024
daniel-thom added a commit that referenced this pull request Mar 6, 2024
jd-lara added a commit that referenced this pull request Mar 6, 2024
@daniel-thom daniel-thom deleted the serialize-everything-but-time-series branch March 8, 2024 17:45
jd-lara pushed a commit that referenced this pull request Mar 27, 2024
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.

3 participants