Skip to content

Commit dbc8692

Browse files
euronionlkstrp
andauthored
Update minimum pypsa version to 0.33.2 (#1849)
* Update minimum pypsa version to 0.35.2 * doc: Update release notes * Update envs/environment.yaml * Update doc/release_notes.rst --------- Co-authored-by: Lukas Trippe <lkstrp@pm.me>
1 parent c0b57e7 commit dbc8692

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

doc/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Upcoming Release
4646

4747
* Remove pinned environment files mention in the pre-commit-config-yaml (https://github.com/PyPSA/pypsa-eur/pull/1837)
4848

49+
* Increase minimum required `pypsa` version to 0.33.2 (https://github.com/PyPSA/pypsa-eur/pull/1849)
50+
4951
PyPSA-Eur v2025.07.0 (11th July 2025)
5052
=====================================
5153

envs/environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- pip
1212

1313
# Inhouse packages
14-
- pypsa>=0.32.1
14+
- pypsa>=0.35.2
1515
- atlite>=0.3
1616
- linopy>=0.4.4
1717
- powerplantmatching>=0.5.15

scripts/make_summary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ def calculate_market_values(n: pypsa.Network) -> pd.Series:
315315
assign_carriers(n)
316316
assign_locations(n)
317317

318-
pypsa.options.set_option("params.statistics.nice_names", False)
319-
pypsa.options.set_option("params.statistics.drop_zero", False)
318+
pypsa.options.params.statistics.nice_names = False
319+
pypsa.options.params.statistics.drop_zero = False
320320

321321
for output in OUTPUTS:
322322
globals()["calculate_" + output](n).to_csv(snakemake.output[output])

scripts/plot_balance_map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343

4444
n = pypsa.Network(snakemake.input.network)
4545
sanitize_carriers(n, snakemake.config)
46-
pypsa.options.set_option("params.statistics.round", 3)
47-
pypsa.options.set_option("params.statistics.drop_zero", True)
48-
pypsa.options.set_option("params.statistics.nice_names", False)
46+
pypsa.options.params.statistics.round = 3
47+
pypsa.options.params.statistics.drop_zero = True
48+
pypsa.options.params.statistics.nice_names = False
4949

5050
regions = gpd.read_file(snakemake.input.regions).set_index("name")
5151
config = snakemake.params.plotting

0 commit comments

Comments
 (0)