Pick out CCS carriers by name pattern instead of listing each capture rate
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
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
Feature Request
CCS carriers are listed by hand wherever the code needs to pick them out, for example:
get_pwr_co2_intensityand the plant-to-link loops inadd_sectors.py(L577-L584, L672-L678)CES_CARRIERSinopts/policy.pyPWR_CARRIERSinsummary_sector.py
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PyPSA/pypsa-usa
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di PyPSA/pypsa-usa
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Rose22/openlumara#166 ·
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement feature/signals self-driving team/self-driving
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PostHog/posthog#144208 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LMPrado-DZ23/open_notas_br#14 ·
I maintainer di solito rispondono entro 1 giorno