From 1c843531c3c6ca4890329fee93749050e74b8b22 Mon Sep 17 00:00:00 2001 From: Julia Kukulies <44163060+JuliaKukulies@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:57:04 -0600 Subject: [PATCH] Update tobac/segmentation.py Set default value for ncells as 0 instead of None to preserve behaviour from the previous implementation Co-authored-by: William Jones --- tobac/segmentation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tobac/segmentation.py b/tobac/segmentation.py index 6aa14f13..8eeadb21 100644 --- a/tobac/segmentation.py +++ b/tobac/segmentation.py @@ -1022,6 +1022,7 @@ def segmentation_timestep( np.array(field_in.data.copy()), features=features_out, statistic={"ncells": np.count_nonzero}, + default=0, ) # compute additional statistics, if requested