Method
init_from_yaml
(cls, yaml_path: str, update_parameters: Union[None, Dict] = None)
Source from the content-addressed store, hash-verified
| 18 | |
| 19 | @classmethod |
| 20 | def init_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None): |
| 21 | config = cls.from_yaml_file(yaml_path) |
| 22 | if update_parameters: |
| 23 | config.parameters.update(update_parameters) |
| 24 | # print(config.module) |
| 25 | config.parameters["src"] = yaml_path |
| 26 | return config |
| 27 | |
| 28 | @classmethod |
| 29 | def create_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None) -> Union[Agent, Task]: |
Tested by
no test coverage detected