Skip to content

Commit

Permalink
code style fix for better warning for sigma
Browse files Browse the repository at this point in the history
  • Loading branch information
JustGlowing committed Apr 5, 2024
1 parent 7625f5b commit a433048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minisom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a433048

Please sign in to comment.