Class: CherrypickTask::PickTarget::ByInterlacedColumn

Inherits:
CherrypickTask::PickTarget show all
Defined in:
app/models/cherrypick_task.rb

Overview

Deals with generating the pick plate by travelling in an interlaced column direction, so A1, C1, E1 …

Instance Method Summary collapse

Methods inherited from CherrypickTask::PickTarget

#empty?, for, #full?, #initialize, #push

Constructor Details

This class inherits a constructor from CherrypickTask::PickTarget

Instance Method Details

#completed_viewObject


68
69
70
71
72
73
74
# File 'app/models/cherrypick_task.rb', line 68

def completed_view
  @wells.dup.tap do |wells|
    complete(wells)
  end.each_with_index.inject([]) do |wells, (well, index)|
    wells.tap { wells[@shape.vertical_to_interlaced_vertical(index + 1, @size)] = well }
  end.compact
end