Skip to content

Commit 2eeb507

Browse files
authored
refactor: another PyPSA v1 deprecation (PyPSA#1858)
* refactor: another PyPSA v1 deprecation * `0.35.2` compatibility
1 parent 39d924d commit 2eeb507

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

config/plotting.default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
plotting:
77
map:
88
boundaries: [-11, 30, 34, 71]
9-
color_geomap:
9+
geomap_colors:
1010
ocean: white
1111
land: white
1212
projection:

doc/configtables/plotting.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
,Unit,Values,Description
22
map,,,
33
-- boundaries,°,"[x1,x2,y1,y2]",Boundaries of the map plots in degrees latitude (y) and longitude (x)
4-
-- color_geomap,,,
4+
-- geomap_colors,,,
55
-- -- ocean,--,str,Color of the ocean in the geomap.
66
-- -- land,--,str,Color of the land in the geomap.
77
projection,,,

doc/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ PyPSA-Eur v2025.07.0 (11th July 2025)
114114
* Small plotting improvements.
115115
(https://github.com/PyPSA/pypsa-eur/pull/1694https://github.com/PyPSA/pypsa-eur/pull/1727)
116116

117+
* The `plotting|map|color_geomap` was renamed to `plotting|map|geomap_colors` to align
118+
with the new PyPSA API.
119+
117120
**Bugfixes and Compatibility**
118121

119122
* Select correct capital costs for floating offshore wind. Previously, the same

scripts/plot_balance_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
else None,
176176
ax=ax,
177177
margin=0.2,
178-
color_geomap={"border": "darkgrey", "coastline": "darkgrey"},
178+
geomap_colors={"border": "darkgrey", "coastline": "darkgrey"},
179179
geomap=True,
180180
boundaries=boundaries,
181181
)

scripts/plot_gas_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def plot_ch4_map(n):
145145
link_colors=pipe_colors["gas pipeline (available)"],
146146
link_widths=link_widths_rem,
147147
branch_components=["Link"],
148-
color_geomap=False,
148+
geomap_colors=False,
149149
boundaries=map_opts["boundaries"],
150150
)
151151

@@ -155,7 +155,7 @@ def plot_ch4_map(n):
155155
link_colors=link_color_used,
156156
link_widths=link_widths_used,
157157
branch_components=["Link"],
158-
color_geomap=False,
158+
geomap_colors=False,
159159
boundaries=map_opts["boundaries"],
160160
)
161161

0 commit comments

Comments
 (0)