diff options
-rw-r--r-- | src/python/gudhi/clustering/tomato.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/clustering/tomato.py b/src/python/gudhi/clustering/tomato.py index fd8f0e98..e3d814d1 100644 --- a/src/python/gudhi/clustering/tomato.py +++ b/src/python/gudhi/clustering/tomato.py @@ -89,7 +89,7 @@ class Tomato: """ # TODO: First detect if this is a new call with the same data (only threshold changed?) # TODO: less code duplication (subroutines?), less spaghetti, but don't compute neighbors twice if not needed. Clear error message for missing or contradictory parameters. - if weights: + if weights is not None: density_type = "manual" else: density_type = self.density_type_ |