Skip to content

Commit b94aeac

Browse files
committed
add release notes and improve error message
1 parent b011d64 commit b94aeac

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

RELEASE_NOTES.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ Upcoming Release
2121
* Add ``aggregate_time={"sum", "mean", None}`` to ``convert_and_aggregate`` for temporal
2222
aggregation with and without spatial aggregation, and deprecate ``capacity_factor``/``capacity_factor_timeseries``
2323
in favor of it
24-
24+
25+
**Bug fixes**
26+
27+
* Fix regression when ``ExclusionContainer`` encounters a raster with an invalid CRS
28+
(https://github.com/PyPSA/atlite/pull/500).
29+
30+
2531
`v0.5.0 <https://github.com/PyPSA/atlite/releases/tag/v0.5.0>`__ (13th March 2026)
2632
=======================================================================================
2733

atlite/gis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ def open_files(self):
484484
raster._crs = CRS(d["crs"])
485485
else:
486486
raise ValueError(
487-
f"CRS of {raster} must be either geographic or projected, "
488-
"please provide it manually."
487+
f"CRS of {raster} is neither geographic nor projected, "
488+
f"please provide it manually:\n{raster.crs}"
489489
)
490490
d["raster"] = raster
491491

0 commit comments

Comments
 (0)