From eaabdce47aae2775f46a8ec956bb94530c58cb54 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 24 Jun 2019 15:02:58 +0200 Subject: [PATCH] [bugfix] on magnitudes --- pylot/core/analysis/magnitude.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index 1d0d1235..c657f17c 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -119,7 +119,9 @@ class Magnitude(object): pass 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 def net_magnitude(self, magscaling=None):