@@ -148,6 +148,8 @@ class Reference:
148
148
"""The dictionary of specs."""
149
149
standard = attr .ib (default = False , repr = False , type = bool )
150
150
"""Whether this space is standard or not."""
151
+ cifti = attr .ib (default = False , repr = False , type = bool )
152
+ """Whether this space is a CIFTI space or not."""
151
153
dim = attr .ib (default = 3 , repr = False , type = int )
152
154
"""Dimensionality of the sampling manifold."""
153
155
@@ -165,6 +167,7 @@ def __attrs_post_init__(self):
165
167
spec ["den" ] = FSAVERAGE_DENSITY [space ]
166
168
object .__setattr__ (self , "spec" , spec )
167
169
170
+ # XXX: This won't cover dhcpAsym, dhcpSym, or onavg
168
171
if self .space .startswith ("fs" ):
169
172
object .__setattr__ (self , "dim" , 2 )
170
173
@@ -186,6 +189,9 @@ def __attrs_post_init__(self):
186
189
if self .space in self ._standard_spaces :
187
190
object .__setattr__ (self , "standard" , True )
188
191
192
+ if "volspace" in self .spec :
193
+ object .__setattr__ (self , "cifti" , True )
194
+
189
195
# Check that cohort is handled appropriately
190
196
_cohorts = ["%s" % t for t in _tfapi .TF_LAYOUT .get_cohorts (template = self .space )]
191
197
if "cohort" in self .spec :
0 commit comments