bin/convert_visit.rb in metamri-0.2.19 vs bin/convert_visit.rb in metamri-0.2.20
- old
+ new
@@ -40,10 +40,10 @@
v = VisitRawDataDirectory.new(raw_directory, scan_procedure_codename)
puts "+++ Converting #{v.visit_directory} as part of #{v.scan_procedure_name} +++"
output_directory = output_directory ||= v.default_preprocess_directory
begin
- default_options = {:ignore_patterns => [/vipr/,/$Processed-Images$/,/900$/,/901$/,/999$/]} # seems to like number , not like string
+ default_options = {:ignore_patterns => [/vipr/,/pfiles/,/raw/,/$Processed-Images$/,/900$/,/901$/,/999$/]} # seems to like number , not like string
#options = default_options.merge(options)
v.scan(default_options)
v.to_nifti!(output_directory)
rescue Exception => e
puts "There was a problem scanning a dataset in #{v.visit_directory}... skipping."