sccn / NEMAR-pipeline

5 stars 1 forks source link

add bids_reexport to the end of the pipeline #38

Open arnodelorme opened 10 months ago

arnodelorme commented 10 months ago

1- re-export processed data 2- Split results into separate folders (not include data) 3- Delete original processed data 4- Handle any interruption/problem in the sequence above

arnodelorme commented 9 months ago
arnodelorme commented 4 weeks ago

try
      bids_reexport(ALLEEG, 'tempfolder');
      % Move all processed/dsxxxxxx to tempfolder/code
      % Remove all data from tempfolder/code/dsxxxxxx/*/*
      % Move all processed/dsxxxxxx/code/NEMAR.json to tempfolder/code/NEMAR.json
      % remove folder processed/dsxxxxxx
      % mv tempfolder processed/dsxxxxxx
catch
      % Copy all processed/dsxxxxxx to processed/dsxxxxxx/code
      % Remove all data from processed/dsxxxxxx/code/dsxxxxxx/*/*
       disp('could not export');
end