From 641a3a09e951bae01a776d8ed5d84e962392caa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 17 Aug 2017 15:38:13 +0200 Subject: [PATCH] [Bugfix] Attribute path got lost during export in loop over output formats, fixed! --- QtPyLoT.py | 1 + pylot/core/io/data.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index eaec6ab1..6f809c45 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1163,6 +1163,7 @@ class MainWindow(QMainWindow): saved_as += str(outformat) + ' ' except TypeError: print('WARNING: Format: {} not yet implemented'.format(outformat)) + self.get_data().setEvtData(event) msg = 'Event {} saved as {} in format(s) {}'.format(event.pylot_id, fbasename, saved_as.strip()) self.update_status(msg) diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index c18ceede..7356b0da 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -223,7 +223,6 @@ class Data(object): self.get_evt_data().resource_id)) self.checkEvent(event, fcheck) self.setEvtData(event) - self.get_evt_data().path = fnout self.get_evt_data().write(fnout + fnext, format=evtformat) # try exporting event else: