Skip to content

Commit eec5a65

Browse files
author
Chahan Kropf
committed
Fix pool problem for concatenating hazards after pool computations
1 parent e66254a commit eec5a65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

climada/hazard/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,7 @@ def append(self, *others):
936936
"The hazards are incompatible and cannot be concatenated."
937937
)
938938
self.haz_type = haz_types.pop()
939-
940-
haz_classes = {type(haz) for haz in haz_list}
939+
haz_classes = {haz.__class__.__name__ for haz in haz_list}
941940
if len(haz_classes) > 1:
942941
raise TypeError(
943942
f"The given hazards are of different classes: {haz_classes}. "

0 commit comments

Comments
 (0)