Skip to content

Commit a8a3c78

Browse files
fix broken plot test
1 parent ba6457c commit a8a3c78

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CLIMADA is divided into two parts (two repositories):
1818

1919
It is recommend for new users to begin with the core (1) and the [tutorials](https://github.com/CLIMADA-project/climada_python/tree/main/doc/tutorial) therein.
2020

21-
This is the Python (3.9+) version of CLIMADA - please see [here](https://github.com/davidnbresch/climada) for backward compatibility with the MATLAB version.
21+
This is the Python (3.10+) version of CLIMADA - please see [here](https://github.com/davidnbresch/climada) for backward compatibility with the MATLAB version.
2222

2323
## Getting started
2424

climada/hazard/plot.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import matplotlib.pyplot as plt
2525
import numpy as np
26-
from deprecation import deprecated
2726

2827
import climada.util.plot as u_plot
2928

@@ -77,8 +76,8 @@ def plot_rp_intensity(
7776
util.plot.plot_from_gdf(gdf, title, labels) instead.
7877
"""
7978
LOGGER.info(
80-
"Some errors in the previous calculation of local exceedance intensities have been corrected,"
81-
" see Hazard.local_exceedance_intensity. To reproduce data with the "
79+
"Some errors in the previous calculation of local exceedance intensities have been "
80+
"corrected, see Hazard.local_exceedance_intensity. To reproduce data with the "
8281
"previous calculation, use CLIMADA v5.0.0 or less."
8382
)
8483

climada/test/test_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_hazard_rp_intensity(self):
112112
""" "Plot exceedance intensity maps for different return periods"""
113113
hazard = Hazard.from_hdf5(HAZ_TEST_TC)
114114
(axis1, axis2), _ = hazard.plot_rp_intensity([25, 50])
115-
self.assertEqual("Return period: 25 years", axis1.get_title())
116-
self.assertEqual("Return period: 50 years", axis2.get_title())
115+
self.assertEqual("Return Period: 25 years", axis1.get_title())
116+
self.assertEqual("Return Period: 50 years", axis2.get_title())
117117

118118
def test_exposures_value_pass(self):
119119
"""Plot exposures values."""

0 commit comments

Comments
 (0)