tfix output file name - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
(HTM) git clone git://src.adamsgaard.dk/cosmo
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8a9ecf60c9b081c895da3e080a518d3cfd90f7a8
(DIR) parent 80c673f658af2aa4fa0a47ad8fcb2b5e528ad447
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 7 Dec 2015 20:38:11 +0100
fix output file name
Diffstat:
M matlab/generate_plots.m | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
t@@ -1125,28 +1125,31 @@ end
% create HTML snippet with results
disp('Creating html snippet for per-walker data file links')
+idstring = strsplit(save_file, '/');
+id = idstring(end);
+
html = '\n';
for i=1:Nwalkers
html = [html, ...
- ' <br><a href="output/', save_file, '-eps_int-w', ...
+ ' <br><a href="output/', id, '-eps_int-w', ...
num2str(i), '.txt"\n', ...
' target="_blank">Walker ', num2str(i), ...
' ε<sub>int</sub> ',...
'data</a>\n'];
html = [html, ...
- ' <a href="output/', save_file, '-eps_gla-w', ...
+ ' <a href="output/', id, '-eps_gla-w', ...
num2str(i), '.txt"\n', ...
' target="_blank">Walker ', num2str(i), ...
' ε<sub>gla</sub> ',...
'data</a>\n'];
html = [html, ...
- ' <a href="output/', save_file, '-t_degla-w', ...
+ ' <a href="output/', id, '-t_degla-w', ...
num2str(i), '.txt"\n', ...
' target="_blank">Walker ', num2str(i), ...
' <i>t</i><sub>degla</sub> ',...
'data</a>\n'];
html = [html, ...
- ' <a href="output/', save_file, '-eps_int-w', ...
+ ' <a href="output/', id, '-eps_int-w', ...
num2str(i), '.txt"\n', ...
' target="_blank">Walker ', num2str(i), ...
' δ<sup>18</sub>O', ...