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()