Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent attempt to re-add existing carriers. #690

Merged
merged 2 commits into from Jun 30, 2023
Merged

Conversation

euronion
Copy link
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
5 checks passed
@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.

None yet

2 participants