Skip to content

Commit d5449d6

Browse files
mariomario
authored andcommitted
import sys
1 parent 827a328 commit d5449d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/python/cni_toolbox/HGR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
'''
2020

21+
import sys
2122
import numpy as np
2223
from scipy.stats import zscore
2324
from scipy.fft import fft, ifft
@@ -224,7 +225,7 @@ def get_parameters(self, n_batch = 10000,
224225
results['mu_x'][batch] = cx / self.r_stimulus * max_radius * 2 - max_radius
225226
results['mu_y'][batch] = -cy / self.r_stimulus * max_radius * 2 - max_radius
226227
R = np.sqrt(results['mu_x'][batch]**2 + results['mu_y'][batch]**2)
227-
P = np.hstack((m_image, R))
228+
P = np.hstack((m_image.reshape(-1,1), R.reshape(-1,1)))
228229
results['sigma'][batch] = np.matmul(P, beta)
229230

230231
i = int(v / n_mask * 21)

0 commit comments

Comments
 (0)