Skip to content

Commit

Permalink
Update tobac/segmentation.py
Browse files Browse the repository at this point in the history
Set default value for ncells as 0 instead of None to preserve behaviour from the previous implementation

Co-authored-by: William Jones <[email protected]>
  • Loading branch information
JuliaKukulies and w-k-jones authored Oct 25, 2023
1 parent 67b383f commit 1c84353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tobac/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c84353

Please sign in to comment.