Exception: BatchExperiment::ColumnSpecError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/batch_experiment.rb

Overview

Exception class raised when multiple extractor objects passed to ::experiment (by the comms_info parameter) disagree on the content of the columns. Ex.: If we call ::experiment with different extractor objects, all arrays returned by the #names method of those extractors should be equal or a prefix of the biggest array. Ex.: [‘a’, ‘b’], [‘a’, ‘b’], [‘a’] and

‘a’, ‘b’, ‘c’

works, but adding [‘a’, ‘c’] will end the program with

this exception. This is made to avoid making the mistake of generating a csv where the same column has a different meaning for each row.