Sha256: a67cecb21e47f7c2b02594f5270543f22033245ce10d283d51ea5924b8ff6819
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
require 'active_resource' class RawImageDatasetResource < ActiveResource::Base self.site = VisitRawDataDirectory::DATAPANDA_SERVER self.element_name = "image_dataset" # Creates a Backwards Transfer to go from ActiveRecord to Metamri Classes # ActiveResource will provide :attr methods for column names from the database, # so check the current schema.rb file for those. def to_metamri_image_dataset # A Metamri Class requires at least one valid image file. # This is a little tricky since we really only care about the variables, not rescanning them. Pathname.new(path).first_dicom do |fd| @dataset = RawImageDataset.new( path, [RawImageFile.new(fd)] ) end return @dataset end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metamri-0.1.11 | lib/metamri/raw_image_dataset_resource.rb |