Skip to content

Commit d79c806

Browse files
mariomario
authored andcommitted
corrected loops in create_gamma
1 parent 2f02d88 commit d79c806

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
@@ -397,8 +397,8 @@ def __create_gamma__(self):
397397
x = np.floor(pix_id / self.r_stimulus)
398398
y = pix_id % self.r_stimulus
399399

400-
for i in range self.n_features:
401-
for j in range self.n_gaussians:
400+
for i in range(self.n_features):
401+
for j in range(self.n_gaussians):
402402
self.gamma[:,i] += gaussian(x[i * n_gaussians + j],
403403
y[i * n_gaussians + j], sigma, x_coordinates, y_coordinates)
404404

0 commit comments

Comments
 (0)