Updates the node_config dictionary as well as attributes with same key. Args: param (dict): The dictionary to update node_config with. overwrite (bool): Flag indicating if the values of node_config should be overwritten if their value is not None
(self, params: dict, overwrite: bool = False)
| 82 | pass |
| 83 | |
| 84 | def update_config(self, params: dict, overwrite: bool = False): |
| 85 | """ |
| 86 | Updates the node_config dictionary as well as attributes with same key. |
| 87 | |
| 88 | Args: |
| 89 | param (dict): The dictionary to update node_config with. |
| 90 | overwrite (bool): Flag indicating if the values of node_config |
| 91 | should be overwritten if their value is not None. |
| 92 | """ |
| 93 | for key, val in params.items(): |
| 94 | if hasattr(self, key) and not overwrite: |
| 95 | continue |
| 96 | setattr(self, key, val) |
| 97 | |
| 98 | def get_input_keys(self, state: dict) -> List[str]: |
| 99 | """ |