Sha256: 7643ad1f34e9446c3242bae069dabf19bc03399a4297224913caf69116fc5242
Contents?: true
Size: 1.8 KB
Versions: 10
Compression:
Stored size: 1.8 KB
Contents
require 'helper_spec' require 'rpipe' describe "Integration Processing for Johnson.Merit220" do before(:all) do @driver_file = File.join(File.dirname(__FILE__), '..', 'drivers', 'mrt00000.yml') @driver = YAML.load_file(@driver_file) @driver['rawdir'] = File.join($MRI_DATA, 'johnson.merit220.visit1', 'mrt00000', 'dicoms') @driver['origdir'] = Dir.mktmpdir('orig_') @driver['procdir'] = Dir.mktmpdir('proc_') @driver['statsdir'] = Dir.mktmpdir('stats_') @driver['jobs'][2]['responses']['directory'] = File.join($MRI_DATA, 'responses') @valid_responses_options = @driver['jobs'][2]['responses'] @pipe = RPipe.new(@driver) @job = @pipe.stats_jobs.first @completed_orig_directory = File.join($MRI_DATA, 'integration', 'mrt00000_orig') @completed_proc_directory = File.join($MRI_DATA, 'integration', 'mrt00000_proc') @completed_stats_directory = File.join($MRI_DATA, 'integration', 'mrt00000_stats') end it "should reconstruct raw data" do pipe = RPipe.new(@driver) p = pipe.recon_jobs.first p.perform @origdir = @driver['origdir'] if Dir.compare_directories(@driver['origdir'], @completed_orig_directory) end it "should preprocess raw data" do @driver['origdir'] = @origdir || Pathname.new(@completed_orig_directory).recursive_local_copy pipe = RPipe.new(@driver) p = pipe.preproc_jobs.first p.perform @procdir = @driver['procdir'] if Dir.compare_directories(@driver['procdir'], @completed_proc_directory) end it "should run stats on processed data" do @driver['procdir'] = @procdir || @completed_proc_directory pipe = RPipe.new(@driver) s = pipe.stats_jobs.first s.perform @statsdir = @driver['statsdir'] if Dir.compare_directories(@driver['statsdir'], @completed_stats_directory) end end
Version data entries
10 entries across 10 versions & 1 rubygems