candle.parsing_utils.ListOfListsAction

candle.parsing_utils.ListOfListsAction#

class candle.parsing_utils.ListOfListsAction(option_strings, dest, type, **kwargs)#

This class extends the argparse.Action class by instantiating an argparser that constructs a list-of-lists from an input (command-line option or argument) given as a string.

__init__(option_strings, dest, type, **kwargs)#

Initialize a ListOfListsAction object. If no type is specified, an integer is assumed by default as the type for the elements of the list- of-lists.

Parameters:
  • option_strings (string) – String to parse

  • dest (object) – Object to store the output (in this case the parsed list-of-lists).

  • type (data type) – Data type to decode the elements of the lists. Defaults to np.int32.

  • kwargs (object) – Python object containing other argparse.Action parameters.

Methods

__init__(option_strings, dest, type, **kwargs)

Initialize a ListOfListsAction object.

format_usage()