Hi,
With the latest Kedro update I can see that to update CongigLoader using TemplatedConfigLoader, rather than overiding ProjectContext._create_config_loader, I need to move the code to the hooks.py under register_config_loader.
However, I was passing extra_params (params specified at run time) as globals_dict. This is passed in as an input to run.run_package.
How can I also use this in the hooks.py?
@hook_impl
def register_config_loader(self, conf_paths: Iterable[str]) -> ConfigLoader:
loader = TemplatedConfigLoader(
conf_paths,
globals_pattern="*globals.yml",
globals_dict=self._extra_params,
)
#print(loader._arg_dict)
return loader
Thanks,
Vinay