Skip to content

Commit 628a2c3

Browse files
mariomario
authored andcommitted
renamed variable range->val_range to prevent issues with range function
1 parent 6925965 commit 628a2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/python/cni_toolbox/HGR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def get_parameters(self, n_batch = 10000,
215215
pos = np.argmax(im, axis = 0)
216216
mx = np.max(im, axis = 0)
217217
mn = np.min(im, axis = 0)
218-
range = mx - mn
219-
im = ((im - mn) / range)**alpha
218+
val_range = mx - mn
219+
im = ((im - mn) / val_range)**alpha
220220
m_image = np.mean(im, axis = 0).transpose()
221221

222222
cx = np.floor(pos / self.r_stimulus)

0 commit comments

Comments
 (0)