Survey banner
Share your feedback on the Dataiku documentation with this 5 min survey. Thanks! TAKE THE SURVEY

Is there a way to find what input I get?

Level 1
Is there a way to find what input I get?

I'm trying to create a recipe where I take "Id" from get_input_names_for_role() and I need to know if it is a saved model or a managed folder or file. Can anyone tell me if there's a way to make a conditional statement in python to check the object type of the given input?

0 Kudos
1 Reply

I think you should be able to use :

from dataiku.customrecipe import get_output_names_for_role, get_input_names_for_role, get_recipe_config

"get_recipe_config()" to determine the type of the input and add your conditions based on this. 

Let me know if that works for you. 

0 Kudos