Skip to content

fill cost calues with default after merging custom costs#1911

Merged
martacki merged 3 commits intomasterfrom
custom_cost_fill_values
Nov 25, 2025
Merged

fill cost calues with default after merging custom costs#1911
martacki merged 3 commits intomasterfrom
custom_cost_fill_values

Conversation

@martacki
Copy link
Copy Markdown
Member

Changes proposed in this Pull Request

Currently cost values are filled with default values before merging them with the (raw) custom cost data. If the custom cost data however includes new technologies but misses, for example, the discount rates, the prepared results such as capital_cost remain missing / NaN.

I suggest changing the order.

It's not necessary for the custom_prepared step, because this is either a result or given (so it's filled either way).

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to pixi.toml (using pixi add <dependency-name>).
  • Changes in configuration options are added in config/config.default.yaml.
  • Changes in configuration options are documented in doc/configtables/*.csv.
  • Sources of newly added data are documented in doc/data_sources.rst.
  • A release note doc/release_notes.rst is added.

@martacki martacki requested a review from tgilon November 19, 2025 13:00
Copy link
Copy Markdown
Collaborator

@tgilon tgilon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @martacki ! This makes sense when you introduce techs via the custom costs that are not fully specified.

@martacki martacki enabled auto-merge (squash) November 25, 2025 13:00
@martacki
Copy link
Copy Markdown
Member Author

enabling auto merge @fneum @lkstrp because this is such a mini change, wouldn't do that otherwise.

Hope it's all right - thanks!

@martacki martacki merged commit 3e1c6bb into master Nov 25, 2025
7 of 8 checks passed
@martacki martacki deleted the custom_cost_fill_values branch November 25, 2025 18:48
daniel-rdt pushed a commit to open-energy-transition/open-tyndp that referenced this pull request Dec 8, 2025
* ci: free up disk space (PyPSA#1920)

* fill cost values with defaults after merging custom costs (PyPSA#1911)

* chore: set ptes.dynamic_capacity default to false (PyPSA#1924)

* flip sector:district_heating:ptes:dynamic_capacity:true to false

* update release notes

* add pixi files and data folder to .sync-send (PyPSA#1923)

* Bugfix load shedding scaling (PyPSA#1908)

* Fix bugs by (i) removing sign argument and (ii) using isinstance

* Remove todo and color and nice_name assignment.

* Add release notes.

* Change p_nom_extendable=True to p_nom=np.inf

* Updated doctables for load_shedding

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

---------

Co-authored-by: Lukas Trippe <[email protected]>
Co-authored-by: Martha Frysztacki <[email protected]>
Co-authored-by: Amos Schledorn <[email protected]>
Co-authored-by: Fabian Neumann <[email protected]>
Co-authored-by: jonathan-peel <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants