[bugfix] on magnitudes

This commit is contained in:
Marcel Paffrath 2019-06-24 15:02:58 +02:00
parent fe73d2e054
commit eaabdce47a

View File

@ -119,7 +119,9 @@ class Magnitude(object):
pass pass
def updated_event(self, magscaling=None): def updated_event(self, magscaling=None):
self.event.magnitudes.append(self.net_magnitude(magscaling)) net_ml = self.net_magnitude(magscaling)
if net_ml:
self.event.magnitudes.append(net_ml)
return self.event return self.event
def net_magnitude(self, magscaling=None): def net_magnitude(self, magscaling=None):