From 39748ca7c2c3c623f5b83a4f4c9174d0db9f6c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 27 Mar 2017 11:31:58 +0200 Subject: [PATCH] Finished flexible handling of different input file names. --- QtPyLoT.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 06750cc7..9e5b8928 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -81,6 +81,7 @@ class MainWindow(QMainWindow): infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in') if os.path.isfile(infile)== False: infile = raw_input("Default file not found! Type name including full path ...") + self.infile = infile self._inputs = AutoPickParameter(infile) if settings.value("user/FullName", None) is None: @@ -606,6 +607,9 @@ class MainWindow(QMainWindow): self.update_status('Event saved as %s' % (fbasename + exform)) return True + def getinfile(self): + return self.infile + def getComponent(self): return self.dispComponent @@ -809,7 +813,8 @@ class MainWindow(QMainWindow): station = self.getStationName(wfID) self.update_status('picking on station {0}'.format(station)) data = self.get_data().getWFData() - pickDlg = PickDlg(self, data=data.select(station=station), + pickDlg = PickDlg(self, infile=self.getinfile(), + data=data.select(station=station), station=station, picks=self.getPicksOnStation(station)) if pickDlg.exec_():