From e1d39b08e2d60545e8976892d7309e38c36635b1 Mon Sep 17 00:00:00 2001 From: Jonas I Liechti Date: Thu, 20 Feb 2020 22:45:02 +0100 Subject: [PATCH] bug fix in get_alluvial --- majortrack/tracker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/majortrack/tracker.py b/majortrack/tracker.py index 09bed94..96d9911 100644 --- a/majortrack/tracker.py +++ b/majortrack/tracker.py @@ -2510,7 +2510,10 @@ def include_cluster(idx, group): ) prev_idx = idx self.sp_clusters = { - _clusters_x_pos[idx]: _clusters[idx] + _clusters_x_pos[idx]: [ + cluster for cluster in _clusters[idx] + if cluster is not None + ] for idx in range(len(_clusters)) } self.sp_fluxes = {