Skip to content

Commit b8cc3fa

Browse files
committed
fixed points - code style fix
1 parent 18074c0 commit b8cc3fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

minisom.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ def get_decay_rate(iteration_index, data_len):
499499
if fixed_points:
500500
for k in fixed_points.keys():
501501
if not isinstance(k, int):
502-
raise TypeError(f'fixed points indexes must ' +
503-
'be integers.')
502+
raise TypeError(f'fixed points indexes must ' +
503+
'be integers.')
504504
if k >= len(data) or k < 0:
505505
raise ValueError(f'an index of a fixed point ' +
506506
'cannot be grater than len(data)' +
@@ -953,7 +953,6 @@ def test_train_fixed_points(self):
953953
som.train(data, 10, fixed_points={-1: (0, 0)})
954954
with self.assertRaises(TypeError):
955955
som.train(data, 10, fixed_points={'oops': (0, 0)})
956-
957956

958957
def test_use_epochs_variables(self):
959958
len_data = 100000

0 commit comments

Comments
 (0)