PyPSA / PyPSA/technology-data

Update / synchronize _helper script and dependencies with main project

Open
#140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
130
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Compared to pypsa_eur, this project uses an outdated version of _helpers.py
from snakemake.settings import

vs

from snakemake.settings.types import

=> Try to avoid copy paste code for _helpers module.
=> Maybe mocking snakemake would not be required if using run instead of script in snakemake file and reworking the interface between snakefile and script. Then _helpers.py could be removed.
=>If helpers.py is still needed, maybe move common code to extra project to reuse functionality instead of duplicating it.
=> Update dependencies.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare this project's _helpers.py and Snakemake files with the corresponding implementation in pypsa_eur, starting with the snakemake.settings import and the current script interface. Determine whether the work should remove _helpers.py, extract shared code, or synchronize it, then update the project dependencies; done means the duplicated or outdated helper behavior and dependency definitions are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.