Skip to content

Commit a436025

Browse files
committed
change tag in selection and plot
1 parent 97e6842 commit a436025

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

climada/entity/exposures/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def plot(self, ignore_zero=True, pop_name=True, buffer_deg=1.0,
143143
Returns:
144144
matplotlib.figure.Figure, cartopy.mpl.geoaxes.GeoAxesSubplot
145145
"""
146-
title = self.tag.join_descriptions()
146+
title = self.tag.description
147147
cbar_label = 'Value (%s)' % self.value_unit
148148
if 'reduce_C_function' not in kwargs:
149149
kwargs['reduce_C_function'] = np.sum
@@ -278,8 +278,8 @@ def select_region(self, reg_id):
278278
return None
279279

280280
sel_exp = Exposures()
281-
sel_exp.tag = self.tag
282-
sel_exp.description = 'Region ' + str(reg_id)
281+
sel_exp.tag.file_name = self.tag.file_name
282+
sel_exp.tag.description = 'Region ' + str(reg_id)
283283
sel_exp.ref_year = self.ref_year
284284
sel_exp.value_unit = self.value_unit
285285
# Obligatory variables

0 commit comments

Comments
 (0)