mllooper.LooperIterationStopConfig#
- pydantic model mllooper.LooperIterationStopConfig[source]#
Bases:
ModuleConfig- field log_level: int = 20#
- field log_time_delta: timedelta = datetime.timedelta(seconds=10)#
- field name: Optional[str] = None#
- field step_iteration_limit: Optional[int] = None#
- field total_iteration_limit: Optional[int] = None#
- classmethod get_yaml_tag() str#
Return the configs yaml tag.
- load(*args, **kwargs)#
Create the object the yaml config object is for.
This basic constructor uses all attributes of the config as kwargs for the loaded class.
- classmethod set_yaml_tag(yaml_tag: Optional[str]) None#
Set the yaml tag of the config.
A valid tag has to start with an exclamation mark.
- Parameters:
yaml_tag – Optional string of the tag. If None the tag will be set to a default value.
- validate_config(force_all: bool = False) None#
Validate a BaseConfig instance
If force_all is False do not raise an error on missing attributes. Configs have to be correct but may be incomplete.
- Parameters:
force_all – If True raise an error on missing attributes