Skip to content

Commit

Permalink
Fix pool problem for concatenating hazards after pool computations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahan Kropf committed Dec 9, 2024
1 parent e66254a commit eec5a65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions climada/hazard/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,7 @@ def append(self, *others):
"The hazards are incompatible and cannot be concatenated."
)
self.haz_type = haz_types.pop()

haz_classes = {type(haz) for haz in haz_list}
haz_classes = {haz.__class__.__name__ for haz in haz_list}
if len(haz_classes) > 1:
raise TypeError(
f"The given hazards are of different classes: {haz_classes}. "
Expand Down

0 comments on commit eec5a65

Please sign in to comment.