candle.helper_utils.eval_string_as_list

candle.helper_utils.eval_string_as_list#

candle.helper_utils.eval_string_as_list(str_read, separator, dtype)#

Parse a string and convert it into a list of lists.

Parameters:
  • str_read (string) – String read (from configuration file or command line, for example)

  • separator (character) – Character that specifies the separation between the lists

  • dtype (data type) – Data type to decode the elements of the list

Returns:

decoded_list – List extracted from string and with elements of the specified type.

Return type:

list