[edit] make use of new pick tag
find out the person's name for tagging the picks set within PyLoT
This commit is contained in:
parent
722e21f582
commit
06576586c6
@ -175,6 +175,8 @@ class PickDlg(QDialog):
|
||||
self.station = station
|
||||
self.rotate = rotate
|
||||
self.components = 'ZNE'
|
||||
settings = QSettings()
|
||||
self._user = settings.value('user/Login', 'anonymous')
|
||||
if picks:
|
||||
self.picks = picks
|
||||
else:
|
||||
@ -389,6 +391,9 @@ class PickDlg(QDialog):
|
||||
traceIDs.append(traceID)
|
||||
return traceIDs
|
||||
|
||||
def getUser(self):
|
||||
return self._user
|
||||
|
||||
def getFilterOptions(self, phase):
|
||||
options = self.filteroptions[phase]
|
||||
return FilterOptions(**options)
|
||||
@ -609,7 +614,8 @@ class PickDlg(QDialog):
|
||||
lpp = stime + lpp
|
||||
|
||||
# save pick times for actual phase
|
||||
phasepicks = {'epp': epp, 'lpp': lpp, 'mpp': mpp, 'spe': spe}
|
||||
phasepicks = dict(epp=epp, lpp=lpp, mpp=mpp, spe=spe,
|
||||
picker=self.getUser())
|
||||
|
||||
try:
|
||||
oldphasepick = self.picks[phase]
|
||||
|
Loading…
Reference in New Issue
Block a user