Skip to content

Conversation

@daniel-rdt
Copy link
Member

@daniel-rdt daniel-rdt commented Jan 8, 2026

Closes #315.

Changes proposed in this Pull Request

This PR proposes to add a scenario column to the custom_costs.csv file which can now also be used to handle scenario management via the new costs:custom_cost_scn config parameter. The default behaviour remains unchanged, however, one now needs to specify an empty string for the case that the custom_costs.csv file should be ignored.

As for other attributes in custom_costs.csv, specifying "all" leads to the entry being applied independent of the scenario.

Tasks

Workflow

  • (new) configuration parameter costs:custom_cost_scn which is added also as a param to the process_cost_data rule
  • The file path to the custom cost file is now fixed as "data/custom_costs.csv"
  • Adjustment specified in the custom_costs.csv are applied for the given scenario and for "all". If empty string ("") is given, no custom_costs are applied.

Open issues

Notes

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
  • Changes in configuration options are added in config/config.default.yaml.
  • Changes in configuration options are documented in doc/configtables/*.csv.
  • Changes in configuration options are added in config/test/*.yaml.
  • A release note doc/release_notes.rst is added.

@daniel-rdt daniel-rdt requested review from lisazeyen and tgilon January 8, 2026 15:39
@daniel-rdt daniel-rdt self-assigned this Jan 8, 2026
@daniel-rdt daniel-rdt marked this pull request as ready for review January 8, 2026 15:46
@tgilon tgilon added the SB Scenario Building label Jan 9, 2026
@tgilon tgilon added this to the Release v0.5 milestone Jan 9, 2026
Copy link
Member

@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.

Looks good tks @daniel-rdt , let's upstream this once we have a final version

"discount rate": 0.07
"standing losses": 0
custom_cost_fn: data/custom_costs.csv
custom_cost_scn: default
Copy link
Member

Choose a reason for hiding this comment

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

I think I would prefer this

Suggested change
custom_cost_scn: default
custom_cost_scenario: all

custom_costs_fn : str, optional
Custom cost modifications file path (default None).
custom_cost_scn : str, optional
Custom cost scenario to select in custom cost modification file (default "").
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Custom cost scenario to select in custom cost modification file (default "").
Custom cost scenario to select in custom cost modification file (default "all").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SB Scenario Building

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SUB] Add a scenario column to the custom_costs file

3 participants