CanlabCore icon indicating copy to clipboard operation
CanlabCore copied to clipboard

Update fmri_data.m to avoid rezip

Open jcf2 opened this issue 1 year ago • 1 comments

Rezip to get back to .gz can be avoided in fmri_data if have original .gz (which we always should).

Fixes https://github.com/canlab/CanlabCore/issues/60

jcf2 avatar Sep 19 '24 20:09 jcf2

To clarify, note that the use of native MATLAB 'gunzip' predates this change (was probably introduced ~5 years ago?). The issue (#60) fixed here is basically that when that switch was made, the "cleanup" should have changed but didn't. System 'gunzip' by default deletes the original .nii.gz, so the "cleanup" step up until now has included recreating the .nii.gz to counter that... when using MATLAB 'gunzip', however, the original .nii.gz is guaranteed to remain, so the only cleanup really needed is to remove the unpacked .nii file(s).

jcf2 avatar Sep 30 '24 13:09 jcf2