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 59f40df commit 3bcc5edCopy full SHA for 3bcc5ed
frites/dataset/ds_ephy.py
@@ -302,8 +302,13 @@ def groupby(self, groupby="roi"):
302
# increasing the number of trials
303
n_sites = idx.sum()
304
if n_sites != 1:
305
- __x = np.moveaxis(__x, 0, -1).reshape(self.n_times, -1)
306
- __yz = np.tile(__yz, (n_sites, 1))
+ ___x, ___yz = [], []
+ for _ne in range(n_sites):
307
+ ___x += [__x[_ne, ...]]
308
+ ___yz += [__yz]
309
+ __x = np.concatenate(___x, axis=1)
310
+ __yz = np.concatenate(___yz, axis=0)
311
+ del ___x, ___yz
312
# at this point the data are (n_times, n_epochs)
313
_x += [__x]
314
_yz += [__yz]
0 commit comments