From 0236a19db1d2fb1f1940437e9a4e0ef73cfb3fa7 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 8 Jul 2015 15:00:51 +0200 Subject: [PATCH] [bugfix] the type of obspy.core.event.Event objects resource_id attribute is of type obspy.core.event.ResourceID but must be of type str; simple conversion fixed this --- pylot/core/read/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index dd54f51b..bcf841d7 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -78,9 +78,9 @@ class Data(object): if fnout is None: ID = self.getID() # handle forbidden filenames especially on windows systems - fnout = fnConstructor(ID) + fnout = fnConstructor(str(ID)) else: - fnout = fnConstructor(fnout) + fnout = fnConstructor(str(fnout)) evtformat = evtformat.upper().strip()