Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

order_data: inputs for electrical or heat "consumption" are converted to efficiencies or filtered out

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

scripts/compile_cost_assumptions.py の order_data、2045~2054 行付近から始め、tech_data の元の値と最終的なデータ出力を比較してください。“Electrical” または “Heat” を含むインデックスがどのように分類されるかを確認し、次に、消費量の入力値が変換またはフィルタリングされず、変更されないままであることを検証してください。最終的に生成される CSV ファイルに期待される消費量データが含まれていることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

feature low priority

Checklist

  • I am using the current master branch or the latest release. Please indicate: YES

ISSUE:

When adding new technologies (e.g. from DEA) which are consuming electricity or heat (i.e. processes for e- fuel production), the electricity and heat consumption is read from the initial excel files but filtred out in the final df, or re-calculated as electrical or heat efficiency

Following the main, if the indexes "electricity consumption" and "heat consumption" are present in the original excel file they are correctly saved in the df "tech_data" but are not included (or strangely modified) in the df "data".

this happens within function "order_data" because all the indexes containing "Electrical" or "Heat" are converted to efficiencies:
https://github.com/PyPSA/technology-data/blob/98fa9218d57638a7156c33dc07749ac3624bd974/scripts/compile_cost_assumptions.py#L2045-L2054

This requires extra code specific for each technology to bypass this issue, which is not sustainable in the long term.
e.g.: https://github.com/PyPSA/technology-data/blob/98fa9218d57638a7156c33dc07749ac3624bd974/scripts/compile_cost_assumptions.py#L2056-L2093

Error Message

there is no error in the code, but the final .csv files have the wrong data

Suggestion

modify this part of the code :
https://github.com/PyPSA/technology-data/blob/98fa9218d57638a7156c33dc07749ac3624bd974/scripts/compile_cost_assumptions.py#L2045-L2054
to don't label electrical and heat consumption as efficiencies.

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

PyPSA/technology-data のほかの issue

PyPSA/technology-data の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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