tfix file loop and file read - 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 02d422d1b6c34801ebf8f8f6a1f685a305ff8327
 (DIR) parent 982c44b95e99c673b67ff5a51d58b2786520db64
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Thu,  3 Dec 2015 19:46:24 +0100
       
       fix file loop and file read
       
       Diffstat:
         M matlab/file_scanner_mcmc_starter.m  |       9 +++++----
       
       1 file changed, 5 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
       t@@ -73,6 +73,7 @@ while 1
                
                % move to waitfolder
                movefile(infile, waitfolder);
       +        waitfile = strcat(waitfolder, '/', infiles(i).name);
                
                idstring = strsplit(infile, '_');
                id = idstring(2);
       t@@ -98,7 +99,7 @@ while 1
                    record, ...
                    record_threshold_min, record_threshold_max, ...
                    nwalkers] ...
       -            = import_php_file(infile, 1, 1); % only read first line
       +            = import_php_file(waitfile, 1, 1); % only read first line
                
                % run inversion
                [Ss, save_file] = mcmc_inversion(matlab_scripts_folder, debug, ...
       t@@ -154,12 +155,12 @@ while 1
                
                diary off;
                
       -        % sleep in order to reduce system load
       -        pause(5)
       -        
                %keyboard
            end
        
       +    % sleep in order to reduce system load
       +    pause(5)
       +    
            % for debugging purposes; ends loop after first iteration
            %break