-
foxes.utils.Factory(base, name_template, args=
()
, kwargs={}
, var2arg={}
, hints={}
, example_vars=None
, **options)[source] Constructor.
Parameters¶
- base: class
The class of which objects are to be created
- name_template: str
The name template, e.g. ‘name_<A>_<B>_<C>’ for variables A, B, C
- args: tuple
Fixed arguments for the base class
- kwargs: dict
Fixed arguments for the base class
- var2arg: dict
Mapping from variable to constructor argument
- hints: dict
Hints for print_toc, only for variables for which the options are functions or missing
- example_vars: dict, optional
Variable values for creating an example
- options: dict
For each variable, e.g. A, B or C, the list or dict or function that maps a str to the actual value