File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1+ function status = isZipped(file )
2+ %
3+ % USAGE::
4+ %
5+ % status = isZipped(file)
6+ %
7+ % (C) Copyright 2022 CPP_SPM developers
8+
9+ status = strcmp(spm_file(file , ' ext' ), ' gz' );
10+ end
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ function removeDummies(varargin)
7878
7979 volumeSplicing(inputFile , 1 : numberOfVolumeToDiscard );
8080
81+ if isZipped(inputFile )
82+ inputFile = spm_file(inputFile , ' ext' , ' ' );
83+ end
8184 jsonFile = spm_file(inputFile , ' ext' , ' json' );
8285
8386 metadata.NumberOfVolumesDiscardedByUser = NumberOfVolumesDiscardedByUser ;
Original file line number Diff line number Diff line change 88 %
99 % :param inputFile:
1010 % :type inputFile: path
11+ %
1112 % :param volumesToRemove:
1213 % :type volumesToRemove: 1xn or nX1 array
14+ %
1315 % :param outputFile: optional parameter. default: will overwrite
1416 % ``inputFile``. If only a filename is given, the file will be created in the
1517 % same folder as the input file.
9092 end
9193
9294end
93-
94- function status = isZipped(file )
95- status = strcmp(spm_file(file , ' ext' ), ' gz' );
96- end
You can’t perform that action at this time.
0 commit comments