Module: Limber::TagLayoutTemplate::InRows
- Defined in:
- app/models/limber/tag_layout_template/in_rows.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary collapse
- #group_wells_of_plate(plate) ⇒ Object
-
#primary_index(row, column, scale, _height, width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in rows with four copies of each i5 follows the same pattern, but isn’t actually shown in limber.
Instance Method Details
#group_wells_of_plate(plate) ⇒ Object
4 5 6 7 8 |
# File 'app/models/limber/tag_layout_template/in_rows.rb', line 4 def group_wells_of_plate(plate) group_wells(plate) do |well_location_pool_pair| WellHelpers.row_order(plate.size).map { |row_column| well_location_pool_pair.call(row_column) } end end |
#primary_index(row, column, scale, _height, width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in rows with four copies of each i5 follows the same pattern, but isn’t actually shown in limber
22 23 24 25 26 |
# File 'app/models/limber/tag_layout_template/in_rows.rb', line 22 def primary_index(row, column, scale, _height, width) tag_col = (column / scale) tag_row = (row / scale) tag_col + (width / scale * tag_row) end |