@@ -209,6 +209,11 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
209209
210210 tools_lst : List [Tool ] = []
211211
212+ graph_settings = {}
213+ graph_settings ['graph_dark_theme' ] = args .graph_dark_theme
214+ graph_settings ['graph_inline_depth' ] = args .graph_inline_depth
215+ graph_settings ['graph_label_edges' ] = args .graph_label_edges
216+
212217 for i , step_key in enumerate (steps_keys ):
213218 step_name_i = utils .step_name_str (yaml_stem , i , step_key )
214219 stem = Path (step_key ).stem
@@ -315,7 +320,8 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
315320 # Use auto-discovery mechanism (with run tag)
316321 tool_i = tools [stepid_runtag ]
317322 else :
318- msg = f"Error! Neither { stepid .stem } nor { stepid_runtag .stem } found!, check your 'search_paths_cwl' in global_config.json"
323+ msg = f"Error! Neither { stepid .stem } nor {
324+ stepid_runtag .stem } found!, check your 'search_paths_cwl' in global_config.json"
319325 raise Exception (msg )
320326 # Programmatically modify tool_i here
321327 graph_dummy = graph # Just use anything here to satisfy mypy
@@ -604,7 +610,7 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
604610 else :
605611 nss_call = namespaces + [step_name_or_key ] + nss_call_embedded
606612
607- utils_graphs .add_graph_edge (args , graph_init , nss_def , nss_call , label , color = 'blue' )
613+ utils_graphs .add_graph_edge (graph_settings , graph_init , nss_def , nss_call , label , color = 'blue' )
608614 elif isinstance (arg_val , Dict ) and 'wic_inline_input' in arg_val :
609615 arg_val = arg_val ['wic_inline_input' ]
610616
@@ -747,7 +753,8 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
747753 insertions : List [StepId ] = []
748754 in_name_in_inputs_file_workflow : bool = (in_name in inputs_file_workflow )
749755 arg_key_in_yaml_tree_inputs : bool = (arg_key in yaml_tree .get ('inputs' , {}))
750- steps [i ] = inference .perform_edge_inference (args , tools , tools_lst , steps_keys ,
756+ inference_use_naming_conventions = args .inference_use_naming_conventions
757+ steps [i ] = inference .perform_edge_inference (inference_use_naming_conventions , graph_settings , tools , tools_lst , steps_keys ,
751758 yaml_stem , i , steps , arg_key , graph , is_root , namespaces ,
752759 vars_workflow_output_internal , input_mapping_copy , output_mapping_copy , inputs_workflow , in_name ,
753760 in_name_in_inputs_file_workflow , arg_key_in_yaml_tree_inputs , insertions , wic_steps , testing )
0 commit comments