Skip to content
Permalink
Browse files

Merge pull request #82 from tiborauer/standalone

DEBUG: standalone according to the recent updates
  • Loading branch information...
tiborauer committed Feb 12, 2019
2 parents 6d8801b + 7b63736 commit be30e1fce67402619ba91d049471e60b2359237a
Showing with 4 additions and 5 deletions.
  1. +3 −2 aa_toolbox/aa_build_standalone_2_build.m
  2. +0 −2 aa_toolbox/aa_standalone.m
  3. +1 −1 extrafunctions/make_stats_table.m
@@ -38,6 +38,7 @@ function aa_build_standalone_2_build(config, outdir)
aap.directory_conventions.DCMTKdir,...
aap.directory_conventions.templatedir...
}];
toolsdir = toolsdir(cellfun(@(x) ~isempty(x), toolsdir));
toolsdir = mcc_a(toolsdir);

aas_makedir(aap,outdir);
@@ -56,8 +57,8 @@ function aa_build_standalone_2_build(config, outdir)
'-a',aap.directory_conventions.spmdir,...
toolsdir{:},...
'aa_standalone.m');
catch
warning('Error during compilation!')
catch E
warning(E.identifier,'Error during compilation: %s\nSetting the environmental variable MCC_USE_DEPFUN to 1 before launching MATLAB may solve the issue.',E.message)
end

aa_close(aap);
@@ -39,8 +39,6 @@ function aa_standalone(fname_config, fname_tasklist, fname_aa, varargin)
xml_aa = xml_read(fname_aa,struct('ReadAttr',0));
aap = recursive_set(aap,xml_aa);

% templates
if strcmp(spm('Ver'),'SPM12'), aap = aas_configforSPM12(aap); end
% check path to T1 template --> the rest should work, too
if exist(fullfile(aap.directory_conventions.spmdir,aap.directory_conventions.T1template),'file')
aas_log(aap,false,['INFO: T1 template located in ' fullfile(aap.directory_conventions.spmdir,aap.directory_conventions.T1template)]);
@@ -117,7 +117,7 @@ function make_stats_table(varargin)
[p,n,~] = fileparts(fname);
fname = fullfile(p,[n '.jpg']);

print(hreg, '-djpeg', '-r200', fname);
print(hreg, '-djpeg', '-r200', fname, '-noui');

close(hreg);

0 comments on commit be30e1f

Please sign in to comment.
You can’t perform that action at this time.