From b235733d2b7cae79a05c0c2be935b31aa38df8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 27 Mar 2017 16:03:15 +0200 Subject: [PATCH] Real user info in manual pick dictionary. Additional information in manual pick dictionary. --- pylot/core/util/widgets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index b0c98c29..84069986 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -6,6 +6,7 @@ Created on Wed Mar 19 11:27:35 2014 """ import os +import getpass import warnings import copy import datetime @@ -518,7 +519,8 @@ class PickDlg(QDialog): self.rotate = rotate self.components = 'ZNE' settings = QSettings() - self._user = settings.value('user/Login', 'anonymous') + pylot_user = getpass.getuser() + self._user = settings.value('user/Login', pylot_user) if picks: self.picks = picks else: @@ -960,7 +962,8 @@ class PickDlg(QDialog): # save pick times for actual phase phasepicks = dict(epp=epp, lpp=lpp, mpp=mpp, spe=spe, - picker=self.getUser()) + picker=self.getUser(), channel=channel, + network=wfdata[0].stats.network) try: oldphasepick = self.picks[phase]