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: