Terminal output
julien-macbook:~/Desktop/DTI $ sct_dmri_moco -i 01_ATAXIA_AMUS_01_DTI.nii -m mask_01_ATAXIA_AMUS_01_DTI_dwi_mean.nii -param metric=CC -g 1 -bvec 01_ATAXIA_AMUS_01_DTI.bvec -qc qc -qc-seg 01_ATAXIA_AMUS_01_DTI_dwi_mean_seg.nii
--
Spinal Cord Toolbox (git-master-bb479d82ea1e2076dd50343177056a61bd17e260)
sct_dmri_moco -i 01_ATAXIA_AMUS_01_DTI.nii -m mask_01_ATAXIA_AMUS_01_DTI_dwi_mean.nii -param metric=CC -g 1 -bvec 01_ATAXIA_AMUS_01_DTI.bvec -qc qc -qc-seg 01_ATAXIA_AMUS_01_DTI_dwi_mean_seg.nii
--
Input parameters:
Input file ............ 01_ATAXIA_AMUS_01_DTI.nii
Group size ............ 1
Creating temporary folder (/var/folders/5f/6n99hhyj5_g5cv_1bbx1q7cr0000gn/T/sct_2024-06-04_16-02-57_moco-wrapper_g82ky7ki)
Copying input data to tmp folder and convert to nii...
Get dimensions of data...
144 x 192 x 40
Data orientation: AIL
Treated as sagittal
Set suffix of transformation file name, which depends on the orientation:
Orientation is sagittal, suffix is '0GenericAffine.mat'. The image is split across the R-L direction, and the estimated transformation is a 2D affine transfo.
Identify b=0 and DWI images...
WARNING: bvecs file is 3xn instead of nx3. Consider using sct_dmri_transpose_bvecs.
Transpose bvecs...
Number of b=0: 1 [0]
Number of DWI: 12 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
Split along T dimension...
Merge and average b=0 data...
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 0%| | 0/12 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 8%|█▊ | 1/12 [00:00<00:01, 5.88iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 17%|███▌ | 2/12 [00:00<00:01, 6.29iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 25%|█████▎ | 3/12 [00:00<00:01, 6.58iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 33%|███████ | 4/12 [00:00<00:01, 6.62iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 42%|████████▊ | 5/12 [00:00<00:01, 6.67iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 50%|██████████▌ | 6/12 [00:00<00:00, 6.74iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 58%|████████████▎ | 7/12 [00:01<00:00, 6.74iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 67%|██████████████ | 8/12 [00:01<00:00, 6.59iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 75%|███████████████▊ | 9/12 [00:01<00:00, 6.22iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 83%|████████████████▋ | 10/12 [00:01<00:00, 5.96iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 92%|██████████████████▎ | 11/12 [00:01<00:00, 5.89iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Merge within groups: 100%|████████████████████| 12/12 [00:01<00:00, 6.28iter/s]
Merge across groups...
-------------------------------------------------------------------------------
Estimating motion on b=0 images...
-------------------------------------------------------------------------------
Input parameters:
Input file ............ b0.nii
Reference file ........ data_T0000.nii.gz
Polynomial degree ..... 2
Smoothing kernel ...... 1
Gradient step ......... 1
Metric ................ CC
Sampling .............. None
Todo .................. estimate_and_apply
Mask ................. mask.nii
Output mat folder ..... mat_b0groups
Data dimensions:
144 x 192 x 40 x 1
Copy file_target to a temporary file...
Register. Loop across Z (note: there is only one Z if orientation is axial)
Z=0/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=0/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 17.33iter/s]
Z=1/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=1/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 17.96iter/s]
Z=2/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=2/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.07iter/s]
Z=3/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=3/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.32iter/s]
Z=4/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=4/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.11iter/s]
Z=5/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=5/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.39iter/s]
Z=6/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=6/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 13.25iter/s]
Z=7/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=7/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.07iter/s]
Z=8/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=8/39: 100%|███████████████████████████████████| 1/1 [00:00<00:00, 18.55iter/s]
Z=9/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=9/39: 100%|███████████████████████████████████| 1/1 [00:01<00:00, 1.04s/iter]
Z=10/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=10/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.04iter/s]
Z=11/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=11/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.04iter/s]
Z=12/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=12/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.08iter/s]
Z=13/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=13/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.01iter/s]
Z=14/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=14/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.07iter/s]
Z=15/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=15/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.04iter/s]
Z=16/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=16/39: 100%|██████████████████████████████████| 1/1 [00:01<00:00, 1.04s/iter]
Z=17/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=17/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.07iter/s]
Z=18/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=18/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.06iter/s]
Z=19/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=19/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.09iter/s]
Z=20/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=20/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.07iter/s]
Z=21/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=21/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.06iter/s]
Z=22/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=22/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.08iter/s]
Z=23/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=23/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.06iter/s]
Z=24/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=24/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.07iter/s]
Z=25/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=25/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.07iter/s]
Z=26/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=26/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.03iter/s]
Z=27/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=27/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 1.02iter/s]
Z=28/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=28/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.75iter/s]
Z=29/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=29/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 11.39iter/s]
Z=30/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=30/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.61iter/s]
Z=31/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=31/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.04iter/s]
Z=32/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=32/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.26iter/s]
Z=33/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=33/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.16iter/s]
Z=34/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=34/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.72iter/s]
Z=35/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=35/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.48iter/s]
Z=36/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=36/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.61iter/s]
Z=37/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=37/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 18.90iter/s]
Z=38/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=38/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 13.32iter/s]
Z=39/39: 0%| | 0/1 [00:00<?, ?iter/s]Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
Z=39/39: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 13.25iter/s]
Image header specifies datatype 'int16', but array is of type 'float64'. Header metadata will be overwritten to use 'float64'.
-------------------------------------------------------------------------------
Estimating motion across groups...
-------------------------------------------------------------------------------
Input parameters:
Input file ............ datasub-groups.nii
Reference file ........ datasub_0_mean.nii.gz
Polynomial degree ..... 2
Smoothing kernel ...... 1
Gradient step ......... 1
Metric ................ CC
Sampling .............. None
Todo .................. estimate_and_apply
Mask ................. mask.nii
Output mat folder ..... mat_groups
Data dimensions:
144 x 192 x 40 x 12
Copy file_target to a temporary file...
Register. Loop across Z (note: there is only one Z if orientation is axial)
Z=0/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.27iter/s]
Z=1/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.71iter/s]
Z=2/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.11iter/s]
Z=3/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.93iter/s]
Z=4/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.71iter/s]
Z=5/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.22iter/s]
Z=6/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 19.57iter/s]
Z=7/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.36iter/s]
Z=8/39: 100%|█████████████████████████████████| 12/12 [00:00<00:00, 18.88iter/s]
Z=9/39: 100%|█████████████████████████████████| 12/12 [00:17<00:00, 1.47s/iter]
Z=10/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.25s/iter]
Z=11/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.33s/iter]
Z=12/39: 100%|████████████████████████████████| 12/12 [00:16<00:00, 1.37s/iter]
Z=13/39: 100%|████████████████████████████████| 12/12 [00:14<00:00, 1.25s/iter]
Z=14/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.30s/iter]
Z=15/39: 100%|████████████████████████████████| 12/12 [00:13<00:00, 1.14s/iter]
Z=16/39: 100%|████████████████████████████████| 12/12 [00:16<00:00, 1.36s/iter]
Z=17/39: 100%|████████████████████████████████| 12/12 [00:16<00:00, 1.38s/iter]
Z=18/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.30s/iter]
Z=19/39: 100%|████████████████████████████████| 12/12 [00:14<00:00, 1.18s/iter]
Z=20/39: 100%|████████████████████████████████| 12/12 [00:14<00:00, 1.25s/iter]
Z=21/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.31s/iter]
Z=22/39: 100%|████████████████████████████████| 12/12 [00:16<00:00, 1.41s/iter]
Z=23/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.25s/iter]
Z=24/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.30s/iter]
Z=25/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.31s/iter]
Z=26/39: 100%|████████████████████████████████| 12/12 [00:14<00:00, 1.22s/iter]
Z=27/39: 100%|████████████████████████████████| 12/12 [00:15<00:00, 1.32s/iter]
Z=28/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 17.78iter/s]
Z=29/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 18.57iter/s]
Z=30/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 17.83iter/s]
Z=31/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 18.37iter/s]
Z=32/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 17.77iter/s]
Z=33/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 19.17iter/s]
Z=34/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 18.32iter/s]
Z=35/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 18.77iter/s]
Z=36/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 16.09iter/s]
Z=37/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 19.10iter/s]
Z=38/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 17.83iter/s]
Z=39/39: 100%|████████████████████████████████| 12/12 [00:00<00:00, 14.53iter/s]
Traceback (most recent call last):
File "/Users/julien/code/spinalcordtoolbox/spinalcordtoolbox/scripts/sct_dmri_moco.py", line 232, in <module>
main(sys.argv[1:])
File "/Users/julien/code/spinalcordtoolbox/spinalcordtoolbox/scripts/sct_dmri_moco.py", line 217, in main
fname_output_image = moco_wrapper(param)
File "/Users/julien/code/spinalcordtoolbox/spinalcordtoolbox/moco.py", line 364, in moco_wrapper
copy_mat_files(nt, file_mat_datasub, index_moco, mat_final, param)
File "/Users/julien/code/spinalcordtoolbox/spinalcordtoolbox/moco.py", line 124, in copy_mat_files
copyfile(fsrc, fdest)
File "/Users/julien/code/spinalcordtoolbox/python/envs/venv_sct/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'mat_groups/mat.Z0000T00000GenericAffine.mat'