Safouane Chergui
11/17/2022, 10:19 AMkedro run
as an input to a node ?
Here is a quick example:
• Kedro run command: kedro run --pipeline my_pipeline --params first_param:first_value
• I’d like to use first_param as an input to a node without having to put it in parameters.yml just to use it as an input to my node. If not, is there a way to use it directly into code ?
Pipeline([
node(
do_something,
inputs="first_param",
outputs="some_output"
)
])
Thanks 👍FlorianGD
11/17/2022, 10:20 AMparams:first_param
as an input and it should work without having to declare it in parameters.yml
Safouane Chergui
11/17/2022, 10:24 AMFlorianGD
11/17/2022, 10:29 AMSafouane Chergui
11/17/2022, 10:29 AMFlorianGD
11/17/2022, 10:30 AMSafouane Chergui
11/17/2022, 10:30 AMextra_params
in register_config_loader
FlorianGD
11/17/2022, 10:31 AMkedro run --pipeline my_pipeline --params first_param:first_value
is not what you actually run?Safouane Chergui
11/17/2022, 10:32 AMFlorianGD
11/17/2022, 10:33 AMSafouane Chergui
11/17/2022, 10:34 AMFlorianGD
11/17/2022, 10:35 AMSafouane Chergui
11/17/2022, 10:47 AMextra_params
in register_config_loader
has the same content whether it’s added dynamically or through kedro run. But as the error says that it didn’t find the parameter in the data catalog, I think it should be injected in it as well
So, it becomes a big hurdle just to avoid passing to kedro run directly 😅FlorianGD
11/17/2022, 10:56 AMregister_config_loader
is removed in Kedro 0.18+
, I would not go down this roadSafouane Chergui
11/17/2022, 10:58 AM