summaryrefslogtreecommitdiff
path: root/src/python/gudhi/representations/vector_methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/representations/vector_methods.py')
-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)