pyBabyMaker.base

This module provides basic infrastructure for ntuple related C++ code generation.

class pyBabyMaker.base.TermColor

Color sequences for UNIX terminal.

class pyBabyMaker.base.UniqueList(iterable=None)

An extension to the standard list class such that every element stored inside is unique.

__add__(value)

Return self+value.

__iadd__(value)

Implement self+=value.

__init__(iterable=None)

This initializer takes an optional iterable and store the unique elements inside that iterable only.

append(obj)

Append object to the end of the list.

insert(index, obj)

Insert object before index.

pyBabyMaker.base.load_file(filepath, current_file_path='/home/docs/checkouts/readthedocs.org/user_builds/pybabymaker/checkouts/latest/pyBabyMaker/base.py')

Return relative path based on current file directory if filepath is enclosed with <>, otherwise return filepath verbatim.

pyBabyMaker.base.update_config(config, update, merge=True)

Update config directory keys from the update directory, if the same key is not present in config.

Else merge the value from two keys if merge key argument is set to True.