Skip to content

Commit 8e39344

Browse files
committed
improve workflow timing
1 parent 5c45768 commit 8e39344

22 files changed

+43
-3
lines changed

demos/MoAE/spm_2022Oct29_001.png

175 KB
Loading

demos/MoAE/spm_2022Oct29_002.png

199 KB
Loading

src/workflows/bidsCopyInputFolder.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ function bidsCopyInputFolder(varargin)
3939

4040
opt = loadAndCheckOptions(opt);
4141

42+
if ~isfield(opt, 'globalStart')
43+
opt.globalStart = elapsedTime(opt, 'globalStart');
44+
end
45+
4246
cleanCrash();
4347

4448
printWorkflowName('copy data', opt);

src/workflows/bidsRename.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ function bidsRename(opt)
6767

6868
end
6969

70-
cleanUpWorkflow(opt);
71-
7270
end
7371

7472
function renameFileAndUpdateMetadata(opt, data, newFilename, json, createdFiles)

src/workflows/preproc/bidsCreateVDM.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function bidsCreateVDM(opt)
6868

6969
end
7070

71+
cleanUpWorkflow(opt);
72+
7173
bidsRename(opt);
7274

7375
end

src/workflows/preproc/bidsGenerateT1map.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@
5151

5252
end
5353

54+
cleanUpWorkflow(opt);
55+
5456
end

src/workflows/preproc/bidsRealignReslice.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,6 @@ function bidsRealignReslice(opt)
6868

6969
end
7070

71+
cleanUpWorkflow(opt);
72+
7173
end

src/workflows/preproc/bidsRealignUnwarp.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ function bidsRealignUnwarp(opt)
5050

5151
end
5252

53+
cleanUpWorkflow(opt);
54+
5355
if ~opt.dryRun && opt.rename
5456
opt = set_spm_2_bids_defaults(opt);
5557
prefix = get_spm_prefix_list();

src/workflows/preproc/bidsRemoveDummies.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,6 @@ function bidsRemoveDummies(varargin)
8989

9090
end
9191

92+
cleanUpWorkflow(opt);
93+
9294
end

src/workflows/preproc/bidsResliceTpmToFunc.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ function bidsResliceTpmToFunc(opt)
7676

7777
end
7878

79+
cleanUpWorkflow(opt);
80+
7981
opt = setRenamingConfig(opt, 'ResliceTpmToFunc');
8082
bidsRename(opt);
8183

0 commit comments

Comments
 (0)