libraries/HighThroughputHelper.rb
def format_slice(slice, columns)
    slice_width = slice.map {|s| s.length}.uniq.first
    empty_slice = slice_width.times.map {|i| EMPTY }
    while slice.length != columns do
      slice.push(empty_slice)
    end
    return slice
  end
# Format incomplete slices, to avoid class Matrix dimension errors when vertically stacking matricies
Format incomplete slices, to avoid class Matrix dimension errors when vertically stacking matricies
Format incomplete slices to avoid class Matrix dimension errors when vertically stacking matricies
def format_slice(slice, columns)
    slice_width = slice.map {|s| s.length}.uniq.first
    empty_slice = slice_width.times.map {|i| EMPTY }
    while slice.length != columns do
      slice.push(empty_slice)
    end
    return slice
  end
def format_slice ( slice , columns ) slice_width = slice . map { | s | s . length } . uniq . first empty_slice = slice_width . times . map { | i | EMPTY } while slice . length != columns do slice . push ( empty_slice ) end return slice end
Format incomplete slices, to avoid class Matrix dimension errors when vertically stacking matricies
Format incomplete slices to avoid class Matrix dimension errors when vertically stacking matricies
slice
columns