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: extra functionality not called #28

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: extra functionality not called #28

wants to merge 2 commits into from

Conversation

lkstrp
Copy link
Member

@lkstrp lkstrp commented Jan 9, 2025

  • Works with just moving the file to the pypsa-eur placeholder. Not sure why it was setup like this in the first place

Checklist

  • Workflow with target rule ariadne_all completes without errors
  • The latest main has been merged into the PR

@lkstrp lkstrp requested a review from toniseibold January 9, 2025 08:01
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Validator Report

I am the Validator. Download all artifacts here.
I'll be back and edit this comment for each new commit.

❗ Run failed!

Download 'logs' artifact to see more details.

  • main failed in: export_ariadne_variables
  • fix-extra-funcs passed! ✅

Model Metrics

Benchmarks Image not available Image not available Image not available

Comparing fix-extra-funcs (2e0fc1e) with main (3fa5c3f).
Branch is 2 commits ahead and 1 commits behind.
Last updated on 2025-01-09 10:36:42 CET.

Copy link
Contributor

@toniseibold toniseibold left a comment

Choose a reason for hiding this comment

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

In general it works and is looking good. It is also nice to include it with the infrastructure already provided by pypsa-eur.
However, what doesn't quite sit right with me is placing the custom_extra_functionality script into the data folder. The data folder in my opinion is for universal files that are used as input only.
The custom_extra_functionality is changing the optimization problem profoundly so I would like to see it somewhere in ./scripts/...
@lindnemi / @fneum what is your opinion on this? Is that something you'd like to see and if so only for pypsa-de or even pypsa-eur?

@lkstrp
Copy link
Member Author

lkstrp commented Jan 9, 2025

I couldn't agree more.

We can just move the file and change the path in the default config for pypsa-de:

custom_extra_functionality: "../data/custom_extra_functionality.py"

In Eur it is probably meant as a "data file" for users who do not touch any code and just add custom functionality with some changes in the config. It still doesn't make sense for this to be tracked by git. But this is a pypsa-eur problem. The data folder also needs a general clean up over there.

For DE I would just move the file back to scripts and change the default config.

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