Configuration Tools

class larcv.ConfigBuilder

Front-end to create configuration objects step by step.

add_batch_filler(datatype: str, producer: str, name: str = '', **kwargs)

Adds a preprocess.

Parameters
  • datatype (str) – The datatype to load into memory

  • producer (str) – The producer of the datatype

  • name (str) – The name of the process in the config file (optional)

  • kwargs (dictionary) – Any override arguments to the configuration

add_preprocess(datatype: str, producer: str, process: str, name: str = '', **kwargs)

Adds a preprocess.

Parameters
  • datatype (str) – The datatype of the input

  • producer (str) – The producer of the input

  • process (str) – The process name

  • name (str) – The name of the process in the config (optional)

  • kwargs (dictionary) – The keywords arguments to override and parameters in the preprocess

get_config()

Gets the configuration.

Returns

The configuration.

print_config()

Prints a configuration using json to format it.

select_filler(datatype: str)

Pick the batch filler base on datatype

Parameters

datatype (str) – The datatype

set_parameter(value, *keys)

Sets the parameter to value, walking into the config dictionary in the order of keys

Parameters
  • value ({ type_description }) – The value

  • keys (list) – The keys

validate_datatype(datatype: str)

Ensure datatype is viable

Parameters

datatype (str) – The datatype

validate_preprocess(preprocess: str)

Ensure preprocess is viable

Parameters

preprocess (str) – The preprocess