dagapp.utils#
Utils
Functions
|
Checks the user defined configs to prevent errors |
|
Display the nodes of a dag with number of slider inputs |
|
Displays the given node based on the argument type |
|
Displays a non-root-node for vectorized input |
|
Returns the arguments for a vectorized FuncNode |
|
Returns default configs based on dags if the user did not provide them |
|
Obtains information from user defined configs |
|
Returns the default values for all the FuncNodes in funcs using the root defaults in defaults |
|
Returns the names of all the FuncNodes found in dag |
|
Get keyword arguments for a FuncNode |
|
Returns the names of all nodes found in dag |
|
Returns the default values for all the root nodes found in dag |
|
Returns default values for all the nodes found in dag |
|
Returns a vectorized input defined by a double slider |
|
Create a double slider for a given node |
|
Updates all nodes based on the values of the root nodes |
|
Raises a streamlit error with the given message |
|
Displays the root nodes of a dag |
|
Updates successors of a changed node |
|
Updates the non-root nodes for a static DAG factory |
|
Update non root-nodes for vectorized DAG factory |
|
Displays the root nodes of a vectorized DAG as double sliders |
- dagapp.utils.check_configs(dags, configs)[source]#
Checks the user defined configs to prevent errors
- dagapp.utils.display_factory(dag, nodes, funcs, values, arg_types, ranges, col)[source]#
Display the nodes of a dag with number of slider inputs
- dagapp.utils.display_node(node, arg_types, ranges, values, st_kwargs)[source]#
Displays the given node based on the argument type
- dagapp.utils.display_vec_node(node, funcs, args)[source]#
Displays a non-root-node for vectorized input
- dagapp.utils.get_default_configs(dags)[source]#
Returns default configs based on dags if the user did not provide them
- dagapp.utils.get_func_values(defaults, funcs)[source]#
Returns the default values for all the FuncNodes in funcs using the root defaults in defaults
- dagapp.utils.get_root_values(dag)[source]#
Returns the default values for all the root nodes found in dag
- dagapp.utils.mk_double_slider(node, st_kwargs, col)[source]#
Create a double slider for a given node
- dagapp.utils.reload_nodes(dag, funcs)[source]#
Updates all nodes based on the values of the root nodes
- dagapp.utils.static_factory(dag, nodes, funcs, values, arg_types, ranges, col)[source]#
Displays the root nodes of a dag
- dagapp.utils.update_static_nodes(dag, nodes, funcs, col)[source]#
Updates the non-root nodes for a static DAG factory