Skip to content

Commit

Permalink
Fixing small bug: output dependecies
Browse files Browse the repository at this point in the history
Dependencies should be built as *row* vector and not as *column*. This way output dependencies from multiple modules can be horizontally concatenated (counter intuitive but he?!)  and be used by the following modules.
  • Loading branch information
ChristophePhillips committed Apr 6, 2018
1 parent 22204bb commit 072907c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tbx_scfg_hmri_autoreorient.m
Expand Up @@ -158,7 +158,7 @@
dep(1).tgt_spec = cfg_findspec({{'filter','image','strtype','e'}});
cdep = 1;
else
dep(numel(job.other)+1,1) = cfg_dep;
dep(1,numel(job.other)+1) = cfg_dep;
% first thing first...
fnam = spm_file(char(job.reference),'basename');
dep(1) = cfg_dep;
Expand Down
2 changes: 1 addition & 1 deletion tbx_scfg_hmri_create.m
Expand Up @@ -415,7 +415,7 @@
% outputs are calculated.

k=1;
cdep(5*numel(job.subj),1) = cfg_dep;
cdep(1,5*numel(job.subj)) = cfg_dep;
for i=1:numel(job.subj)

cdep(k) = cfg_dep;
Expand Down

0 comments on commit 072907c

Please sign in to comment.