Skip to content

Commit 066f261

Browse files
committed
corrected eccentricity sampling
1 parent 032344d commit 066f261

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

code/python/cni_toolbox/pRF.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,7 @@ def create_timecourses(self, max_radius = 10.0, n_xy = 30,
265265

266266
n_lower = int(np.ceil(n_xy/2))
267267
n_upper = int(np.floor(n_xy/2))
268-
self.ecc = np.exp(np.hstack(
269-
[np.linspace(np.log(max_radius), np.log(.1), n_lower),
270-
np.linspace(np.log(.1), np.log(max_radius), n_upper)]))
268+
self.ecc = np.exp(np.linspace(np.log(0.1), np.log(max_radius), n_xy))
271269
self.pa = np.linspace(0, (n_xy - 1) / n_xy * 2 * np.pi, n_xy)
272270
self.slope = np.linspace(min_slope, max_slope, n_slope)
273271

@@ -321,8 +319,7 @@ def mapping(self, data, threshold = 100, mask = []):
321319
(self.n_samples,
322320
self.n_total))
323321

324-
mean_signal = np.mean(data, axis = 0)
325-
322+
mean_signal = np.mean(data, axis = 0)
326323

327324
if np.size(mask)==0:
328325
mask = mean_signal >= threshold

0 commit comments

Comments
 (0)