File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1288,7 +1288,7 @@ def from_axes(cls, axes):
1288
1288
1289
1289
Parameters
1290
1290
----------
1291
- axes : Tuple[ cifti2_axes.Axis]
1291
+ axes : tuple of :class`. cifti2_axes.Axis`
1292
1292
sequence of Cifti2 axes describing each row/column of the matrix to be stored
1293
1293
1294
1294
Returns
@@ -1328,7 +1328,7 @@ def __init__(self,
1328
1328
Object containing image data. It should be some object that
1329
1329
returns an array from ``np.asanyarray``. It should have a
1330
1330
``shape`` attribute or property.
1331
- header : Cifti2Header instance or Sequence[ cifti2_axes.Axis]
1331
+ header : Cifti2Header instance or sequence of :class:` cifti2_axes.Axis`
1332
1332
Header with data for / from XML part of CIFTI-2 format.
1333
1333
Alternatively a sequence of cifti2_axes.Axis objects can be provided
1334
1334
describing each dimension of the array.
Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ def from_index_mapping(mim):
124
124
125
125
Parameters
126
126
----------
127
- mim : cifti2.Cifti2MatrixIndicesMap
127
+ mim : :class:`. cifti2.Cifti2MatrixIndicesMap`
128
128
129
129
Returns
130
130
-------
131
- subtype of Axis
131
+ subclass of :class:` Axis`
132
132
"""
133
133
return_type = {'CIFTI_INDEX_TYPE_SCALARS' : ScalarAxis ,
134
134
'CIFTI_INDEX_TYPE_LABELS' : LabelAxis ,
@@ -149,7 +149,7 @@ def to_header(axes):
149
149
150
150
Returns
151
151
-------
152
- cifti2.Cifti2Header
152
+ :class:`. cifti2.Cifti2Header`
153
153
"""
154
154
axes = tuple (axes )
155
155
mims_all = []
@@ -777,7 +777,7 @@ def from_brain_models(cls, named_brain_models):
777
777
for idx_parcel , (parcel_name , bm ) in enumerate (named_brain_models ):
778
778
all_names .append (parcel_name )
779
779
780
- voxels = bm .voxel [~ bm .surface_mask ]
780
+ voxels = bm .voxel [bm .volume_mask ]
781
781
if voxels .shape [0 ] != 0 :
782
782
if affine is None :
783
783
affine = bm .affine
You can’t perform that action at this time.
0 commit comments