/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
fix fmri
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 2d8dde5addcb parent 7245151 Browse files
1 changed file+2−2
benchcompress/src/benchcompress/datasets/fmri/__init__.pymodified+2−2View file
@@ -50,7 +50,7 @@ def _load_bold_data(*, slice_indices: Optional[List[int]] = None) -> np.ndarray:
5050 data = data.astype(np.int16)
5151
5252 if slice_indices is not None:
53- data = data[:, :, :, slice_indices]
53+ data = data[:, :, slice_indices, :]
5454
5555 # Now we are going to convert to 1d array, and we make sure that the time dimension varies the fastest
5656 data = data.ravel()
@@ -61,7 +61,7 @@ def _load_bold_data(*, slice_indices: Optional[List[int]] = None) -> np.ndarray:
6161 datasets = [
6262 {
6363 "name": "fmri-ds005880",
64- "version": "1",
64+ "version": "2",
6565 "description": "Middle 15 slices from BOLD fMRI recording from ds005880 OpenNeuro dataset.",
6666 "create": lambda: _load_bold_data(slice_indices=list(range(15, 30))),
6767 "tags": tags,
moveopenescclose