bin/convert_visit.rb in metamri-0.2.16 vs bin/convert_visit.rb in metamri-0.2.17
- 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/,/900$/,/901$/,/999$/]} # seems to like number , not like string
+ default_options = {:ignore_patterns => [/vipr/,/$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."