You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By a quick inspection, there are exactly the same except that the later was modernized a bit and that the first one returns both the cropped image and the reference.
It would be great to have a single function with a better signature:
Note: I don't think we need to return the reference as it is one of the inputs. Modifying the connections in the related pipeline should do the trick in my opinion.
I'm not sure where to put these as it will be used by PETLinear and T1Linear. Maybe we could have the function in clinica.utils.image and the adapter within a tasks.py module under clinica.pipelines which defines tasks shared by all pipelines ?
The text was updated successfully, but these errors were encountered:
The
crop_nifti
function is currently defined in two places:clinica/clinica/pipelines/t1_linear/anat_linear_utils.py
Lines 59 to 94 in 81e0586
and
clinica/clinica/pipelines/pet_linear/pet_linear_utils.py
Lines 105 to 133 in 81e0586
By a quick inspection, there are exactly the same except that the later was modernized a bit and that the first one returns both the cropped image and the reference.
It would be great to have a single function with a better signature:
and an adapter task for Nipype:
Note: I don't think we need to return the reference as it is one of the inputs. Modifying the connections in the related pipeline should do the trick in my opinion.
I'm not sure where to put these as it will be used by PETLinear and T1Linear. Maybe we could have the function in
clinica.utils.image
and the adapter within atasks.py
module underclinica.pipelines
which defines tasks shared by all pipelines ?The text was updated successfully, but these errors were encountered: