From 47f0fcb03007c77640cb8aee630b9d18f37d028b Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Fri, 13 Feb 2015 11:29:32 +0100 Subject: [PATCH] corrected wrong logic of the routine --- pylot/core/read/data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index 0600c7f5..80ad69ac 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -85,11 +85,11 @@ class Data(object): raise FormatError(errmsg) if fnout is None: - ID = self.evtdata.getEventID() - else: ID = self.getID() - # handle forbidden filenames especially on windows systems - fnout = fnConstructor(ID) + # handle forbidden filenames especially on windows systems + fnout = fnConstructor(ID) + else: + fnout = fnConstructor(fnout) evtformat = evtformat.upper().strip()