PyPSA / PyPSA/pypsa-usa

SAFER does not work with sector studies

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

Nobody has claimed this yet.

bug Sector
Dominant language
Python
Stars
148
Forks
55
Avg merge
2d 11h
Merged PRs (30d)
18

Description

Checklist
  • I am using the current master branch
  • I am running on an up-to-date pypsa-usa environment. Update via conda env update -f envs/environment.yaml
The Issue

In sector studies, gas and coal thermal generators are converted to links to track fuel use between sectors. When adding SAFER constraints, only generators are queried, missing generators that have been converted to links.

Steps To Reproduce

No response

Expected Behavior

No response

Error Message

No response

Anything else?

https://github.com/PyPSA/pypsa-usa/blob/a05664935c3d0828b9dae46d64fcd4fca137d177/workflow/scripts/solve_network.py#L675-L753

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

Start in workflow/scripts/solve_network.py around lines 675-753 and trace how SAFER constraints query generators during sector studies. Check how gas and coal thermal generators are converted to links, then verify that SAFER constraints include those converted components in a sector-study run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.