Fazil Topal
09/19/2024, 2:01 PMnode(
func=sample_func,
# name="sample_func" -> does not work when this is commented
inputs="epubdf",
outputs="result"
)
and then run this test:
kedro_session.run(node_names=['sample_func'])
I get an error saying name doesnt exists but when i specify name parameter in node itself it works. I thought if i don't provide it, name would be equal to func name itself, no?Merel
09/19/2024, 2:08 PMNone
Fazil Topal
09/19/2024, 2:10 PMfunc.___name___
? Or was there a reason why it wasn't?Merel
09/19/2024, 2:10 PMFazil Topal
09/19/2024, 2:11 PMJuan Luis
09/19/2024, 2:13 PMwould it make sense to make it default toit's been discussed, it's a backwards-incompatible change but I actually think we should do it, have a look at https://github.com/kedro-org/kedro/issues/3575?func.___name___
Fazil Topal
09/19/2024, 2:17 PMkedro registry describe __ default __
which returns func names so i thought it was working but tests fail. Reading the thread, i also see it has other issues with default as well so i guess for now i'll put the names manually 😄Nok Lam Chan
09/20/2024, 12:40 PMNok Lam Chan
09/20/2024, 12:41 PMFazil Topal
09/20/2024, 12:46 PM