From a43304831b19a33ed83b31695fa4ebf569249145 Mon Sep 17 00:00:00 2001 From: JustGlowing Date: Fri, 5 Apr 2024 10:02:01 +0100 Subject: [PATCH] code style fix for better warning for sigma --- minisom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minisom.py b/minisom.py index c269faf..a084124 100644 --- a/minisom.py +++ b/minisom.py @@ -171,7 +171,8 @@ def euclidean(x, w): Random seed to use. """ if sigma > sqrt(x*x + y*y): - warn('Warning: sigma might be too high for the dimension of the map.') + warn('Warning: sigma might be too high' + + 'for the dimension of the map.') self._random_generator = random.RandomState(random_seed)