Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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?
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.