From 2d7b7708a1fafc452ee3ff3bdcceca24c5be24d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 14 Jun 2019 12:50:16 +0200 Subject: [PATCH] Variable pick referenced before assignment, cosmetics. --- pylot/core/analysis/magnitude.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index b1d725dd..00018383 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -381,13 +381,13 @@ class MomentMagnitude(Magnitude): # NLLoc: time_weight = 0 => do not use onset! if a.time_weight == 0: continue + pick = a.pick_id.get_referred_object() station = pick.waveform_id.station_code if len(self.stream) <= 2: - print("Station:", station) - print("WARNING: No instrument corrected data available, \ - no magnitude calculation possible! Go on.") + print("Station:" '{0}'.format(station)) + print("WARNING: No instrument corrected data available," + " no magnitude calculation possible! Go on.") continue - pick = a.pick_id.get_referred_object() scopy = self.stream.copy() wf = scopy.select(station=station) if not wf: