Skip to content

Conversation

@ma-tripleT
Copy link

A two-variable fix for #122

Ensuring that _is_multiframe_diffusion_imaging() actually returns the modified NIfTI (after ADC is removed) then handling this extra return in the Tuple.

With new test data too.

bvecs = None

return bvals, bvecs, bval_file, bvec_file
return nifti, bvals, bvecs, bval_file, bvec_file
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key change - to return the modified nifti i.e. the ADC was removed a few lines earlier.

bvec_file = '%s/%s.bvec' % (base_path, base_name)
bval, bvec, bval_file, bvec_file = _create_bvals_bvecs(multiframe_dicom, bval_file, bvec_file, nii_image,
output_file)
nii_image, bval, bvec, bval_file, bvec_file = _create_bvals_bvecs(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Including the nii_image in the tuple of variables to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant