Variable pick referenced before assignment, cosmetics.
This commit is contained in:
parent
025822c485
commit
2d7b7708a1
@ -381,13 +381,13 @@ class MomentMagnitude(Magnitude):
|
|||||||
# NLLoc: time_weight = 0 => do not use onset!
|
# NLLoc: time_weight = 0 => do not use onset!
|
||||||
if a.time_weight == 0:
|
if a.time_weight == 0:
|
||||||
continue
|
continue
|
||||||
|
pick = a.pick_id.get_referred_object()
|
||||||
station = pick.waveform_id.station_code
|
station = pick.waveform_id.station_code
|
||||||
if len(self.stream) <= 2:
|
if len(self.stream) <= 2:
|
||||||
print("Station:", station)
|
print("Station:" '{0}'.format(station))
|
||||||
print("WARNING: No instrument corrected data available, \
|
print("WARNING: No instrument corrected data available,"
|
||||||
no magnitude calculation possible! Go on.")
|
" no magnitude calculation possible! Go on.")
|
||||||
continue
|
continue
|
||||||
pick = a.pick_id.get_referred_object()
|
|
||||||
scopy = self.stream.copy()
|
scopy = self.stream.copy()
|
||||||
wf = scopy.select(station=station)
|
wf = scopy.select(station=station)
|
||||||
if not wf:
|
if not wf:
|
||||||
|
Loading…
Reference in New Issue
Block a user