We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2584db4 commit 1fd65ebCopy full SHA for 1fd65eb
code/python/cni_toolbox/pRF.py
@@ -186,13 +186,14 @@ def set_hrf(self, hrf):
186
axis = 0)
187
188
def set_stimulus(self, stimulus):
189
-
+ self.stimulus = np.zeros((self.n_samples + self.l_hrf,
190
+ self.n_total))
191
if stimulus.ndim==3:
- self.stimulus = np.reshape(stimulus,
192
+ self.stimulus[0:self.n_samples,:] = np.reshape(stimulus,
193
(self.w_stimulus * self.h_stimulus,
194
self.n_samples))
195
else:
- self.stimulus = stimulus
196
+ self.stimulus[0:self.n_samples,:] = stimulus
197
198
def import_stimulus(self):
199
0 commit comments