From 0d07adeeae252abed918b566b128c536de0dceaa Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 20 Mar 2019 10:15:44 +0100 Subject: [PATCH] [bugfix] unhashable type "newstr" --- pylot/core/util/obspyDMT_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylot/core/util/obspyDMT_interface.py b/pylot/core/util/obspyDMT_interface.py index d0e55a20..e8a1a021 100644 --- a/pylot/core/util/obspyDMT_interface.py +++ b/pylot/core/util/obspyDMT_interface.py @@ -39,6 +39,8 @@ def qml_from_obspyDMT(path): event_dmt['origin_id'].id = str(event_dmt['origin_id'].id) ev = Event(resource_id=event_dmt['event_id']) + #small bugfix "unhashable type: 'newstr' " + event_dmt['origin_id'].id = str(event_dmt['origin_id'].id) origin = Origin(resource_id=event_dmt['origin_id'], time=event_dmt['datetime'], longitude=event_dmt['longitude'], latitude=event_dmt['latitude'], depth=event_dmt['depth']) mag = Magnitude(mag=event_dmt['magnitude'], magnitude_type=event_dmt['magnitude_type'],