Skip to content

Commit a551f2d

Browse files
mgxdeffigies
andauthored
Update niworkflows/interfaces/cifti.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 915cb01 commit a551f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/interfaces/cifti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def _create_cifti_image(
364364
annot = nb.load(annotation_files[hemi == "RIGHT"])
365365
medial = np.nonzero(annot.darrays[0].data)[0]
366366
# extract values across volumes
367-
ts = np.array([tsarr.data[medial] for tsarr in surf_ts.darrays])
367+
ts = surf_ts.agg_data("time series")[medial, :]
368368

369369
vert_idx = ci.Cifti2VertexIndices(medial)
370370
bm = ci.Cifti2BrainModel(

0 commit comments

Comments
 (0)