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

Move ValueCurves, cost aliases, CostCurve, FuelCurve, and associated tests from PSY to IS (IS version) #392

Merged
merged 4 commits into from
Aug 3, 2024

Conversation

GabrielKS
Copy link
Contributor

These features are now needed in packages that don't have a dependency on PowerSystems, so they need to be moved to InfrastructureSystems. The PRs are pretty straightforward, almost entirely just copypasting.

@@ -2,6 +2,10 @@ isdefined(Base, :__precompile__) && __precompile__()

module InfrastructureSystems

# Cost aliases don't display properly unless they are exported from IS
Copy link
Contributor Author

@GabrielKS GabrielKS Aug 2, 2024

Choose a reason for hiding this comment

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

@jd-lara you won't love this, but exporting the aliases is the only way to get them to register as aliases for the purposes of printing and such, and I think overriding the printing of these types is uglier than adding them as exports. @daniel-thom agrees that this is fairly harmless — a name collision is unlikely because these would be imported rather than redefined in any package that also exports them, and also we are (possibly accidentally) already exporting some things from IS.

Copy link
Member

Choose a reason for hiding this comment

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

uggg. Fine

@jd-lara jd-lara merged commit 3ce0e20 into main Aug 3, 2024
7 checks passed
@jd-lara jd-lara deleted the gks/costs_to_is branch October 28, 2024 14:44
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.

2 participants