From 5a1d0931335c4d7c35f786140790d584691e82f8 Mon Sep 17 00:00:00 2001 From: kapoorlab Date: Mon, 4 Dec 2023 22:41:10 +0100 Subject: [PATCH] cloud exception --- src/napatrackmater/_version.py | 4 ++-- src/napatrackmater/clustering.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/napatrackmater/_version.py b/src/napatrackmater/_version.py index 76a9ff81..f59370c8 100644 --- a/src/napatrackmater/_version.py +++ b/src/napatrackmater/_version.py @@ -1,2 +1,2 @@ -__version__ = version = "4.5.3" -__version_tuple__ = version_tuple = (4, 5, 3) +__version__ = version = "4.5.4" +__version_tuple__ = version_tuple = (4, 5, 4) diff --git a/src/napatrackmater/clustering.py b/src/napatrackmater/clustering.py index 602d1670..c33e69d0 100644 --- a/src/napatrackmater/clustering.py +++ b/src/napatrackmater/clustering.py @@ -590,6 +590,13 @@ def get_label_centroid_cloud( cloud = get_panda_cloud_xyz(points) else: cloud = get_panda_cloud_xyz(points) + else: + if ndim == 2: + cloud = get_panda_cloud_xy(simple_clouds) + elif ndim == 3: + cloud = get_panda_cloud_xyz(simple_clouds) + else: + cloud = get_panda_cloud_xyz(simple_clouds) else: if ndim == 2: cloud = get_panda_cloud_xy(simple_clouds)