Skip to content

Prevent attempt to re-add existing carriers.#690

Merged
fneum merged 2 commits intomasterfrom
fix/safe-add-carriers
Jun 30, 2023
Merged

Prevent attempt to re-add existing carriers.#690
fneum merged 2 commits intomasterfrom
fix/safe-add-carriers

Conversation

@euronion
Copy link
Copy Markdown
Contributor

add_electricity.py would throw an error:

ERROR:pypsa.io:Error, new components for Carrier are not unique

which this PR prevents.

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • [n/a] Changed dependencies are added to envs/environment.yaml.
  • [n/a] Changes in configuration options are added in all of config.default.yaml.
  • [n/a] Changes in configuration options are also documented in doc/configtables/*.csv.
  • A release note doc/release_notes.rst is added.

@fneum fneum merged commit 662492a into master Jun 30, 2023
@fneum fneum deleted the fix/safe-add-carriers branch June 30, 2023 12:50
roac1409 added a commit to roac1409/pypsa-eur that referenced this pull request Jul 1, 2023
roac1409 added a commit to roac1409/pypsa-eur that referenced this pull request Jul 1, 2023
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.

2 participants