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

Split static graph data and add is_milestone to years' data #768

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

abelsiqueira
Copy link
Member

@abelsiqueira abelsiqueira commented Sep 3, 2024

Pull request details

Describe the changes made in this pull request

  • Move the "static" graph information to separate files (i.e., data that does not depend on year)
  • Create a column is_milestone in year-data.csv
  • Change all test files with the changes above
  • Add Year struct and schema

List of related issues or pull requests

Closes #766

Collaboration confirmation

As a contributor I confirm

  • I read and followed the instructions in README.dev.md
  • The documentation is up to date with the changes introduced in this Pull Request (or NA)
  • Tests are passing
  • Lint is passing

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c1c5103) to head (40ab843).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #768   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          887       888    +1     
=========================================
+ Hits           887       888    +1     

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

@abelsiqueira abelsiqueira marked this pull request as ready for review September 3, 2024 08:28
@abelsiqueira abelsiqueira requested a review from gnawin September 3, 2024 08:28
Copy link
Member

@gnawin gnawin left a comment

Choose a reason for hiding this comment

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

Hi @abelsiqueira thanks for the PR. It looks good, I just left a minor comment. And a question for the flow investment.

@@ -0,0 +1,7 @@
asset_name,asset_name,
from_asset,to_asset,carrier
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we need to add investment_method to flows (for transport investment), otherwise what formulation do we want to use for flows? @datejada @g-moralesespana

Copy link
Member

Choose a reason for hiding this comment

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

Given the reply from German on Teams, indeed we will only use simple method for transport investment. We can either leave it empty, meaning we will use simple by default. Or we can add investment_method here and specify simple here. @abelsiqueira What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Those are different things. Adding a column means that we can change the investment method, even if you add a column that is empty by default. If the column has no meaning right now, then I would not add it.

Copy link
Member

@gnawin gnawin left a comment

Choose a reason for hiding this comment

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

Thank you @abelsiqueira. LTGM!

@gnawin gnawin merged commit a9f60a6 into TulipaEnergy:main Sep 3, 2024
7 checks passed
@abelsiqueira abelsiqueira deleted the 766-split-data branch September 3, 2024 13:09
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.

Prepare more data for multi-year simple and compact formulation
2 participants