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

PSSE Exporter Sync-up #53

Draft
wants to merge 74 commits into
base: main
Choose a base branch
from
Draft

PSSE Exporter Sync-up #53

wants to merge 74 commits into from

Conversation

GabrielKS
Copy link
Contributor

@GabrielKS GabrielKS commented Nov 5, 2024

This large pull request integrates changes into main from two smaller pull requests, each of which initially drew on work in other branches:

  1. PSSE Exporter Part 1: Add Tests and Formalize Exporter Implementation #42
  2. PSSE Exporter Part 2: Integrate with PowerSimulations #48

plus some more commits only in this branch. Each of those PRs has received some amount of review but has not been scrutinized in detail, so now is the time to do that.

HaleyRoss and others added 30 commits August 13, 2024 10:58
@GabrielKS GabrielKS self-assigned this Nov 6, 2024
@GabrielKS
Copy link
Contributor Author

@jd-lara this one also has some remaining TODOs but I think it's time to get someone else's eyes on it. Tagging @HaleyRoss for visibility in case you want to see what it turned into

@GabrielKS GabrielKS force-pushed the hrgks/psse_exporter_psy4 branch from ba109fb to f00e73b Compare November 26, 2024 19:15
@@ -7,16 +7,26 @@ export DCPowerFlow
export ACPowerFlow
export PTDFDCPowerFlow
export vPTDFDCPowerFlow
export PSSEExportPowerFlow
Copy link
Member

Choose a reason for hiding this comment

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

Why are we exporting these 2 objects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PSSEExportPowerFlow: this is how the user specifies in the network model that the export should be run, see e.g. this test.

PSSEExporter: the user can create one of these themselves to do a PSS/E export from a PSY System manually, not part of a simulation.

valid_ix,
neighbors,
)
# TODO: bus_type might need to also be a Matrix since the type can change for a particular scenario
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this change in this PR please?

@@ -0,0 +1,1369 @@
const PSSE_EXPORT_SUPPORTED_VERSIONS = [:v33] # TODO add :v34
const PSSE_DEFAULT = "" # Used below in cases where we want to insert an empty field to signify the PSSE default
const PSSE_BUS_TYPE_MAP = Dict(
Copy link
Member

Choose a reason for hiding this comment

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

We should have a map of this kind in PowerSystems.jl to make it consistent with the parser.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we should. I suspect there are a lot of things here that should be consolidated with the parser in PSY

Make a `deepcopy` of the `System` except replace the time series manager and supplemental
attribute manager with blank versions so these are not copied.
"""
function deepcopy_system_no_time_series_no_supplementals(sys::System)
Copy link
Member

Choose a reason for hiding this comment

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

@GabrielKS and @daniel-thom should we move this PSY and make a "fast" copy function. Despite the fact that we might move to some other approach, this seems useful in other areas like the saving of the system to results in PowerSimulations.jl

Copy link
Contributor Author

@GabrielKS GabrielKS Dec 16, 2024

Choose a reason for hiding this comment

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

I'd support that, at least for internal use — if @daniel-thom agrees I'll move it over there and write the tests. I also plan to move with_units to PSY.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(see previous discussion at #48 (comment))

Choose a reason for hiding this comment

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

Sure, I agree. I do wonder if someone is going to want an option that keeps supplemental attributes.

Copy link
Contributor Author

@GabrielKS GabrielKS Dec 16, 2024

Choose a reason for hiding this comment

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

Maybe it's fast_deepcopy_system() with kwargs include_time_series and include_supplemental_attributes or something like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

4 participants