@@ -207,8 +207,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
207207 graph_nx = graph .networkx
208208 graphdata = graph .graphdata
209209
210- # plugin_ns = wic['wic'].get('namespace', 'global')
211-
212210 tools_lst : List [Tool ] = []
213211
214212 for i , step_key in enumerate (steps_keys ):
@@ -267,8 +265,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
267265 print ('AST modified' , step_key )
268266 wic_steps [f'({ i + 1 } , { step_key } )' ] = {'wic' : sub_node_data .yml .get ('wic' , {})}
269267 wic_step_i = wic_steps .get (f'({ i + 1 } , { step_key } )' , {})
270- # import yaml
271- # print(yaml.dump(wic_steps))
272268
273269 # Add arguments to the compiled subworkflow (if any), being careful
274270 # to remove any child wic: metadata annotations. Post-compilation
@@ -355,11 +351,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
355351 # should be written to subdirectories or if everything should be
356352 # written to autogenerated/
357353 if relative_run_path :
358- # if step_key in subkeys:
359- # run_path = step_name_or_key + '/' + run_path
360- # else:
361- # run_path = os.path.relpath(run_path, 'autogenerated/')
362- # run_path = ('../' * len(namespaces)) + run_path
363354 run_path = step_name_or_key + '/' + run_path
364355 else :
365356 if step_key in subkeys :
@@ -781,8 +772,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
781772 inputs_file_workflow , vars_workflow_output_internal ,
782773 explicit_edge_defs_copy , explicit_edge_calls_copy )
783774 compiler_info = CompilerInfo (rose_tree , env_data )
784- # node_data_dummy = NodeData(None, None, yaml_tree_mod, None, None, None, None, None, None, None)
785- # compiler_info_dummy = CompilerInfo(RoseTree(node_data_dummy, None), None)
786775 return compiler_info
787776
788777 # Add CommandLineTool/Subworkflow outputs tags to workflow out tags.
@@ -791,7 +780,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
791780 out_keyvals = {}
792781 for out_key , out_dict in tool_i .cwl ['outputs' ].items ():
793782 out_keyvals [out_key ] = utils_cwl .copy_cwl_input_output_dict (out_dict )
794- # print(out_key, out_keyvals[out_key])
795783 if not out_keyvals : # FYI out_keyvals should never be {}
796784 print (f'Error! no outputs for step { step_key } ' )
797785 outputs_workflow .append (out_keyvals )
@@ -864,7 +852,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
864852 def populate_scalar_val (in_dict : dict ) -> Any :
865853 newval : Any = ()
866854 if 'File' == in_dict ['type' ]:
867- # path = Path(in_dict['value']).name # NOTE: Use .name ?
868855 newval = {'class' : 'File' , 'path' : in_dict ['value' ]}
869856 if 'format' in in_dict :
870857 in_format = in_dict ['format' ]
@@ -904,8 +891,6 @@ def populate_scalar_val(in_dict: dict) -> Any:
904891 new_keyval = {key : val_list }
905892 else :
906893 new_keyval = {key : populate_scalar_val (in_dict )}
907- # else:
908- # raise Exception(f"Error! Unknown type: {in_dict['type']}")
909894 yaml_inputs .update (new_keyval )
910895
911896 if not testing :
0 commit comments