summaryrefslogtreecommitdiff
path: root/src/python/gudhi/representations
diff options
context:
space:
mode:
authormartinroyer <16647869+martinroyer@users.noreply.github.com>2020-06-16 22:36:31 +0200
committerGitHub <noreply@github.com>2020-06-16 22:36:31 +0200
commit1abc47f5bf65ee3451a907ecfc9db84c0471ef93 (patch)
tree2b153f4e5cac4f7655473944daab69d9bfefa906 /src/python/gudhi/representations
parentec1c3ad11aeb46a67926a615fd5c00fbc70b501e (diff)
Update src/python/gudhi/representations/vector_methods.py
Diffstat (limited to 'src/python/gudhi/representations')
-rw-r--r--src/python/gudhi/representations/vector_methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/representations/vector_methods.py b/src/python/gudhi/representations/vector_methods.py
index a576267c..566c24a3 100644
--- a/src/python/gudhi/representations/vector_methods.py
+++ b/src/python/gudhi/representations/vector_methods.py
@@ -675,7 +675,7 @@ class Atol(BaseEstimator, TransformerMixin):
if self.quantiser.n_clusters == 1:
dist_centers = pairwise.pairwise_distances(measures_concat)
np.fill_diagonal(dist_centers, 0)
- self.inertias = np.max(dist_centers)/2
+ self.inertias = np.array([np.max(dist_centers)/2])
else:
dist_centers = pairwise.pairwise_distances(self.centers)
np.fill_diagonal(dist_centers, np.inf)