-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
Seems like changes here nipy/nibabel#1336 broke dcmstack dcmmeta.make_empty (FYI: @effigies ), which in turns causes heudiconv to fail too @yarikoptic as can be seen in recent PRs ( eg. nipy/heudiconv#791 ).
As dcmstack do not seem to pin specific version of nibabel as reqs, any fresh install is likely to trigger that bug.
@classmethod
def make_empty(klass, shape, affine, reorient_transform=None,
slice_dim=None):
'''Make an empty DcmMetaExtension.
Parameters
----------
shape : tuple
The shape of the data associated with this extension.
affine : array
The RAS affine for the data associated with this extension.
reorient_transform : array
The transformation matrix representing any reorientation of the
data array.
slice_dim : int
The index of the slice dimension for the data associated with this
extension
Returns
-------
result : DcmMetaExtension
An empty DcmMetaExtension with the required values set to the
given arguments.
'''
result = klass(dcm_meta_ecode, '{}')
> result._content['global'] = OrderedDict()
E TypeError: 'str' object does not support item assignment
Metadata
Metadata
Assignees
Labels
No labels