Skip to content

Commit 9d926be

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

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
@@ -242,8 +242,8 @@ def get_parameters(self, n_batch = 10000,
242242
pos = np.argmax(im, axis = 0)
243243
mx = np.max(im, axis = 0)
244244
mn = np.min(im, axis = 0)
245-
range = mx - mn
246-
im = ((im - mn) / range)**alpha
245+
val_range = mx - mn
246+
im = ((im - mn) / val_range)**alpha
247247
m_image = np.mean(im, axis = 0).transpose()
248248

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

0 commit comments

Comments
 (0)