[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.station = station
|
||||||
self.rotate = rotate
|
self.rotate = rotate
|
||||||
self.components = 'ZNE'
|
self.components = 'ZNE'
|
||||||
|
settings = QSettings()
|
||||||
|
self._user = settings.value('user/Login', 'anonymous')
|
||||||
if picks:
|
if picks:
|
||||||
self.picks = picks
|
self.picks = picks
|
||||||
else:
|
else:
|
||||||
@ -389,6 +391,9 @@ class PickDlg(QDialog):
|
|||||||
traceIDs.append(traceID)
|
traceIDs.append(traceID)
|
||||||
return traceIDs
|
return traceIDs
|
||||||
|
|
||||||
|
def getUser(self):
|
||||||
|
return self._user
|
||||||
|
|
||||||
def getFilterOptions(self, phase):
|
def getFilterOptions(self, phase):
|
||||||
options = self.filteroptions[phase]
|
options = self.filteroptions[phase]
|
||||||
return FilterOptions(**options)
|
return FilterOptions(**options)
|
||||||
@ -609,7 +614,8 @@ class PickDlg(QDialog):
|
|||||||
lpp = stime + lpp
|
lpp = stime + lpp
|
||||||
|
|
||||||
# save pick times for actual phase
|
# 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:
|
try:
|
||||||
oldphasepick = self.picks[phase]
|
oldphasepick = self.picks[phase]
|
||||||
|
Loading…
Reference in New Issue
Block a user