deepr.config.fill_macros
- deepr.config.fill_macros(item, macros=None)[source]
Create item whose macro params present in macros are filled.
Returns a new dictionary, tuple or list or item depending on item’s type. String params that use the macro syntax “$macro:param” are replaced by the relevant entry from macros (macros[macro][param]) ONLY IF FOUND.
WARNING: No exception is raised if a macro value is not found in macros. Use
assert_no_macros()
to check that a config contains no macro parameters.