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

fix: Make ReEDS parser compatible with new cost functions #44

Merged
merged 12 commits into from
Sep 27, 2024
Merged

Conversation

pesap
Copy link
Collaborator

@pesap pesap commented Sep 19, 2024

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 88.26087% with 27 lines in your changes missing coverage. Please review.

Project coverage is 62.18%. Comparing base (5b5c360) to head (d7bd292).

Files with missing lines Patch % Lines
src/r2x/exporter/utils.py 75.51% 12 Missing ⚠️
src/r2x/exporter/plexos.py 83.67% 8 Missing ⚠️
src/r2x/exporter/sienna.py 93.33% 4 Missing ⚠️
src/r2x/models/costs.py 93.33% 2 Missing ⚠️
src/r2x/parser/plexos.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   60.86%   62.18%   +1.32%     
==========================================
  Files          29       29              
  Lines        3020     3115      +95     
==========================================
+ Hits         1838     1937      +99     
+ Misses       1182     1178       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pesap pesap marked this pull request as ready for review September 27, 2024 20:43
@pesap pesap requested a review from ktehranchi September 27, 2024 20:43
match cost["class_type"]:
case "ThermalGenerationCost":
if shut_down := cost.get("start_up"):
component["Start Cost"] = shut_down
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not name the variable here start_up?

@ktehranchi
Copy link
Collaborator

small comments but LGTM

@pesap pesap mentioned this pull request Sep 27, 2024
@pesap pesap merged commit 0e09279 into main Sep 27, 2024
8 checks passed
@pesap pesap deleted the ps/reeds-fix branch October 18, 2024 04:52
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