Skip to content

prepare_sector_network: fix e_max_pu in unsustainable biomass stores#1266

Merged
fneum merged 1 commit intomasterfrom
fix-unsus-biomass-e_max_pu
Sep 9, 2024
Merged

prepare_sector_network: fix e_max_pu in unsustainable biomass stores#1266
fneum merged 1 commit intomasterfrom
fix-unsus-biomass-e_max_pu

Conversation

@FabianHofmann
Copy link
Copy Markdown
Contributor

@FabianHofmann FabianHofmann commented Sep 9, 2024

Fixes the time series handling of e_max_pu in for unsustainable biomass stores

Changes proposed in this Pull Request

Checklist

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

unsus_stores_idx = n.stores.loc[
n.stores.carrier == "unsustainable solid biomass"
].index
unsus_stores_idx = n.stores.query(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unsus_stores_idx seems to be twice defined

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, the second definition depends on the first

Copy link
Copy Markdown
Contributor

@cpschau cpschau left a comment

Choose a reason for hiding this comment

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

Good catch, thanks for cleaning up!

unsus_stores_idx = n.stores.query(
"carrier == 'unsustainable solid biomass'"
).index
unsus_stores_idx = unsus_stores_idx.intersection(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In what cases n.stores_t.e_max_pu would not contain any columns related to the unsustainable solid biomass store?

@fneum fneum merged commit 0423366 into master Sep 9, 2024
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.

4 participants