We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66254a commit eec5a65Copy full SHA for eec5a65
climada/hazard/base.py
@@ -936,8 +936,7 @@ def append(self, *others):
936
"The hazards are incompatible and cannot be concatenated."
937
)
938
self.haz_type = haz_types.pop()
939
-
940
- haz_classes = {type(haz) for haz in haz_list}
+ haz_classes = {haz.__class__.__name__ for haz in haz_list}
941
if len(haz_classes) > 1:
942
raise TypeError(
943
f"The given hazards are of different classes: {haz_classes}. "
0 commit comments