Class: DefaultRecon::DicomRawSequence
- Inherits:
-
RawSequence
- Object
- RawSequence
- DefaultRecon::DicomRawSequence
- Defined in:
- lib/default_methods/recon/raw_sequence.rb
Overview
Manage a folder of Raw Dicoms for Nifti file conversion
Instance Method Summary collapse
-
#prepare_and_convert_sequence(outfile) ⇒ Object
(also: #prepare)
Locally copy and unzip a folder of Raw Dicoms and call convert_sequence on them.
Methods inherited from RawSequence
Constructor Details
This class inherits a constructor from DefaultRecon::RawSequence
Instance Method Details
#prepare_and_convert_sequence(outfile) ⇒ Object Also known as: prepare
Locally copy and unzip a folder of Raw Dicoms and call convert_sequence on them
16 17 18 19 20 21 22 |
# File 'lib/default_methods/recon/raw_sequence.rb', line 16 def prepare_and_convert_sequence(outfile) scandir = File.join(@rawdir, @scan_spec['dir']) $Log.info "Dicom Reconstruction: #{scandir}" Pathname.new(scandir).all_dicoms do |dicoms| convert_sequence(dicoms, outfile) end end |