Pick out CCS carriers by name pattern instead of listing each capture rate

Aperta
#901 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start with get_pwr_co2_intensity and the plant-to-link loops in workflow/scripts/add_sectors.py, then CES_CARRIERS in workflow/scripts/opts/policy.py and PWR_CARRIERS in workflow/scripts/summary_sector.py. Decide where a shared pattern helper belongs (constants.py or _helpers.py) and confirm the maintainers agree on it first. Done when the carrier-matching sites use the pattern and per-carrier tables are left unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Feature Request

CCS carriers are listed by hand wherever the code needs to pick them out, for example:

Adding a capture rate means updating each of these, and a missed one fails quietly: the plant stays a generator instead of becoming a link, or gets no CES credit (that was #871). #879 had to edit several of these lists just to add CCGT-90CCS.

Suggested Solution

Where the code filters or dispatches on carriers, match a pattern such as r"^CCGT-\d+CCS$" and read the capture rate from the name, as get_pwr_co2_intensity already does. The pattern (or a small helper) could live in constants.py or _helpers.py so there is one place to change.

Tables that hold per-carrier data, like costs, lifetimes or the ATB name mapping, should stay explicit.

Additional Info

From the review of #879: https://github.com/PyPSA/pypsa-usa/pull/879#discussion_r4513222507

Lingua principale
Python
Stelle
154
Fork
58
Merge medio
3g 9h
PR unite (30g)
51

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PyPSA/pypsa-usa

Tutte le issue di PyPSA/pypsa-usa

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.