Merge branch 'master' into pre-commit-ci-update-config

This commit is contained in:
Fabian Hofmann 2024-04-10 11:02:20 +02:00 committed by GitHub
commit b01011b52e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -174,6 +174,8 @@ Upcoming Release
* Fix index of existing capacities in `add_power_capacities_installed_before_baseyear` with `m` option.
* Fix custom busmap read in `cluster_network`.
PyPSA-Eur 0.10.0 (19th February 2024)
=====================================

View File

@ -519,8 +519,8 @@ if __name__ == "__main__":
custom_busmap = params.custom_busmap
if custom_busmap:
custom_busmap = pd.read_csv(
snakemake.input.custom_busmap, index_col=0, squeeze=True
)
snakemake.input.custom_busmap, index_col=0
).squeeze()
custom_busmap.index = custom_busmap.index.astype(str)
logger.info(f"Imported custom busmap from {snakemake.input.custom_busmap}")