foxes.utils.Factory.check_match(name, error=False, ret_pars=False)[source]

Tests if a name matches the template and constructs parameters

Parameters

name: str

The name to be checked

error: bool

Flag for raising a Value error in case of mismatch

ret_pars: bool

Flag for returning the parameters

Returns

success: bool

True if the template is matched

pars: dict, optional

The constructed parameters