Skip to content

Commit 5798a91

Browse files
author
Timo Schmid
committed
update Changelog and format code
1 parent df084ce commit 5798a91

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Removed:
2222
- `ImpactFunc` and `ImpactFuncSet` now support equality comparisons via `==` [#1027](https://github.com/CLIMADA-project/climada_python/pull/1027)
2323

2424
### Changed
25-
25+
- Changed the default mask_distance in `util.plot.geo_im_from_array` to 0.03 to avoid white gaps in gridded hazard data with comparably low resolution (>80 centroids per axis) [#1073](https://github.com/CLIMADA-project/climada_python/pull/1073)
26+
- Increased speed of `util.plot.add_shapes` by avoiding for loops, substantially speeding up `Hazard.plot_intensity` and other functions. [#1073](https://github.com/CLIMADA-project/climada_python/pull/1073)
2627
- `Hazard.local_exceedance_intensity`, `Hazard.local_return_period` and `Impact.local_exceedance_impact`, `Impact.local_return_period`, using the `climada.util.interpolation` module: New default (no binning), binning on decimals, and faster implementation [#1012](https://github.com/CLIMADA-project/climada_python/pull/1012)
2728
- World Bank indicator data is now downloaded directly from their API via the function `download_world_bank_indicator`, instead of relying on the `pandas-datareader` package [#1033](https://github.com/CLIMADA-project/climada_python/pull/1033)
2829
- `Exposures.write_hdf5` pickles geometry data in WKB format, which is faster and more sustainable. [#1051](https://github.com/CLIMADA-project/climada_python/pull/1051)

climada/util/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,8 @@ def add_shapes(axis):
733733
axis : cartopy.mpl.geoaxes.GeoAxesSubplot
734734
Cartopy axis
735735
"""
736-
axis.add_feature(cfeature.BORDERS.with_scale('10m'), edgecolor='dimgrey')
737-
axis.add_feature(cfeature.COASTLINE.with_scale('10m'), edgecolor='dimgrey')
736+
axis.add_feature(cfeature.BORDERS.with_scale("10m"), edgecolor="dimgrey")
737+
axis.add_feature(cfeature.COASTLINE.with_scale("10m"), edgecolor="dimgrey")
738738

739739
def _ensure_utf8(val):
740740
# Without the `*.cpg` file present, the shape reader wrongly assumes latin-1 encoding:

0 commit comments

Comments
 (0)