CHP plants remain as existing capacities despite expired lifetime

オープン
#34 コメント 0 件 リアクション 0 件 担当者 2 名 GitHub で見る

@cpschau がすでに取り組んでいます。

2025年1月21日 から。

評価

この issue はまだ評価されていません。

説明

bug

Running the myopic Code, CHP plants which are supposed to be filtered out in add_existing_baseyear due to their expired lifetime remain within the network. The filter does not work, as several data points have missing values in the columns queried in https://github.com/PyPSA/pypsa-de/blob/ca2d8ff3502115034a0adca5ad8ed0aef2bae973/scripts/add_existing_baseyear.py#L463

A potential solution could be to provide a default value for the plants' lifetimes where it is missing and to filter out plants whose lifetimes have expired:

    chp["lifetime"] = (chp.DateOut - chp["grouping_year"] + 1).fillna(
        snakemake.params.costs["fill_values"]["lifetime"]
    )
    chp = chp.loc[chp.grouping_year + chp.lifetime >= baseyear]

主要言語
Python
スター
54
フォーク
36
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PyPSA/pypsa-de のほかの issue

PyPSA/pypsa-de の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。