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
listclass 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
filepathis enclosed with<>, otherwise returnfilepathverbatim.
-
pyBabyMaker.base.update_config(config, update, merge=True)¶ Update
configdirectory keys from theupdatedirectory, if the same key is not present inconfig.Else merge the value from two keys if
mergekey argument is set toTrue.