Class: AtlasDataSet

Inherits:
SectionDataSet show all
Defined in:
app/models/atlas_data_set.rb

Overview

Data set of type Atlas. It inherits all the qualities of Data set.

Associations:

Instance Method Summary (collapse)

Methods inherited from SectionDataSet

#label, #reference_to_image

Methods inherited from DataSet

#get_product_ids

Instance Method Details

- (Object) reference_images

only return annotated images for reference usage SPECIAL CASE: if there are no annotated images, return all the images (for Hong Wei's classic atlas)



12
13
14
15
# File 'app/models/atlas_data_set.rb', line 12

def reference_images
  images = self.atlas_images.select {|i| i.annotated?}
  images.size > 0 ? images : self.atlas_images
end