From 1a18401fe3a77d8daf15999fce13959bf0b6b88a Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 12 Jun 2024 13:44:02 +0200 Subject: [PATCH] [bugfix] added missing Parameter object in call for picksdict_from_picks --- PyLoT.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PyLoT.py b/PyLoT.py index 3326460c..87edf54a 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -2999,10 +2999,16 @@ class MainWindow(QMainWindow): event = self.get_current_event() event.pylot_picks = {} event.pylot_autopicks = {} - picksdict = picksdict_from_picks(evt=self.get_data().get_evt_data()) + picksdict = picksdict_from_picks(evt=self.get_data().get_evt_data(), parameter=self.getParameter()) event.addPicks(picksdict['manual']) event.addAutopicks(picksdict['auto']) + def getParameter(self): + if hasattr(self.project, 'parameter') and isinstance(self.project.parameter, PylotParameter): + return self.project.parameter + else: + return self._inputs + def drawPicks(self, station=None, picktype=None, stime=None): # if picktype not specified, draw both if not stime: