Class: ZooniverseData::Projects::Wise

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/zooniverse_data/projects/wise.rb

Instance Method Summary collapse

Instance Method Details

#customize_subjectObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/zooniverse_data/projects/wise.rb', line 6

def customize_subject
  new_locations = {}

  entry.location['standard'].each do |path|
    image_type = path.match(/.*_(?<image_type>[a-zA-Z0-9]+)\.png$/)
    image_type = image_type[:image_type]
    new_locations[image_type] = path
  end

  new_locations['standard'] = new_locations['wise4']

  set_location new_locations
end