[bugfixes] location/magnitude w ludger

This commit is contained in:
2018-06-28 15:22:40 +02:00
parent 5870843a03
commit 4cb3f72ba8
4 changed files with 18 additions and 44 deletions

View File

@@ -122,7 +122,13 @@ class Magnitude(object):
def net_magnitude(self, magscaling=None):
if self:
if magscaling is not None and str(magscaling) is not '[0.0, 0.0]':
if magscaling == None:
scaling = False
elif magscaling[0] != 0 and magscaling[1] != 0:
scaling = False
else:
scaling = True
if scaling:
# scaling necessary
print("Scaling network magnitude ...")
mag = ope.Magnitude(
@@ -141,7 +147,6 @@ class Magnitude(object):
station_count=len(self.magnitudes),
azimuthal_gap=self.origin_id.get_referred_object().quality.azimuthal_gap)
return mag
return None
class LocalMagnitude(Magnitude):

View File

@@ -3419,7 +3419,6 @@ class TuneAutopicker(QWidget):
'eventid': [self.get_current_event_fp()],
'iplot': 2,
'fig_dict': self.fig_dict,
'locflag': 0,
'savexml': False,
'obspyDMT_wfpath': wfpath}
for key in self.fig_dict.keys():