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 875f93c commit d0a484bCopy full SHA for d0a484b
nibabel/cifti2/cifti2.py
@@ -1229,11 +1229,13 @@ def get_axis(self, index):
1229
def get_data_shape(self):
1230
"""
1231
Returns data shape expected based on the CIFTI-2 header
1232
+
1233
+ Any dimensions omitted in the CIFIT-2 header will be given a default size of None.
1234
1235
from . import cifti2_axes
1236
if len(self.mapped_indices) == 0:
1237
return ()
- base_shape = [-1] * (max(self.mapped_indices) + 1)
1238
+ base_shape = [None] * (max(self.mapped_indices) + 1)
1239
for mim in self:
1240
size = len(cifti2_axes.from_index_mapping(mim))
1241
for idx in mim.applies_to_matrix_dimension:
0 commit comments