Introduction
Introduction Statistics Contact Development Disclaimer Help
tsave to dedicated folder - cosmo - front and backend for Markov-Chain Monte Ca…
git clone git://src.adamsgaard.dk/cosmo
Log
Files
Refs
README
LICENSE
---
commit d0c4b1cc26c1f062ca7176a4731ebbe8b2b6c21d
parent 3fee2ba842e6ca5c1ff761a054b10d1c8feb86b0
Author: Anders Damsgaard <[email protected]>
Date: Thu, 27 Aug 2015 11:56:57 +0200
save to dedicated folder
Diffstat:
M matlab/file_scanner_mcmc_starter.m | 7 +++++--
M matlab/generate_plots.m | 4 ++--
M matlab/mcmc_inversion.m | 4 ++--
3 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_star…
t@@ -10,6 +10,9 @@
% folder containing input files from web interface ("uploadhistory.php")
infolder = '/tmp';
+% folder for generated plots
+outfolder = 'output/';
+
% uniquely identifying file name prefix for input files
prefix = 'cosmo_';
t@@ -68,7 +71,7 @@ while 1
% run inversion
[Ss, save_file] = mcmc_inversion(matlab_scripts_folder, debug, ...
- n_walkers, ...
+ n_walkers, outfolder, ...
be_conc, al_conc, c_conc, ne_conc, ...
be_uncer, al_uncer, c_uncer, ne_uncer, ...
be_prod, al_prod, c_prod, ne_prod, ...
t@@ -81,7 +84,7 @@ while 1
% generate plots
%CompareWalks2(Ss, save_file)
- generate_plots(Ss, save_file, graphics_formats)
+ generate_plots(Ss, output_folder, save_file, graphics_formats)
% delete or archive the file so it is not processed again
%delete(infile)
diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
t@@ -1,4 +1,4 @@
-function generate_plots(Ss, save_file, formats)
+function generate_plots(Ss, folder, save_file, formats)
%% Copied from m_pakke2014maj11/CompareWalks2.m
% Generates and saves all relevant figures
t@@ -197,7 +197,7 @@ figure(fh(1))
for i=1:4
figure_save_multiformat(figure(fh(i)), ...
- strcat(save_file, '-', num2str(i)), ...
+ strcat(folder, '/', save_file, '-', num2str(i)), ...
formats);
end
diff --git a/matlab/mcmc_inversion.m b/matlab/mcmc_inversion.m
t@@ -1,5 +1,5 @@
function [Ss, save_file] = mcmc_inversion(matlab_scripts_folder, debug, ...
- n_walkers, ...
+ n_walkers, outfolder, ...
be_conc, al_conc, c_conc, ne_conc, ...
be_uncer, al_uncer, c_uncer, ne_uncer, ...
be_prod, al_prod, c_prod, ne_prod, ...
t@@ -253,5 +253,5 @@ if beeps
sound(0.5*sin(1:0.5:500));pause(0.3);sound(0.5*sin(1:0.75:750))
end
-save_file = ['Walks_',datestr(now,'yyyymmdd_HHMMSS')];
+save_file = [outfolder, '/Walks_',datestr(now,'yyyymmdd_HHMMSS')];
save(save_file,'Ss','save_file')
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.