Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 46f6ab0

Browse files
committed
Always supply the inputs and outputs dictionaries to yaml
cwl-runner seems to reqiure the inputs and outputs directories to be present in the YAML output even if they are empty.
1 parent 77e4ee7 commit 46f6ab0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

cwlgen/__init__.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,14 @@ def export(self, outfile=None):
102102
if self.doc:
103103
cwl_tool['doc'] = literal(self.doc)
104104
# Add Inputs
105-
if self.inputs:
106-
cwl_tool['inputs'] = {}
107-
for in_param in self.inputs:
108-
cwl_tool['inputs'][in_param.id] = in_param.get_dict()
105+
cwl_tool['inputs'] = {}
106+
for in_param in self.inputs:
107+
cwl_tool['inputs'][in_param.id] = in_param.get_dict()
109108

110109
# Add Outputs
111-
if self.outputs:
112-
cwl_tool['outputs'] = {}
113-
for out_param in self.outputs:
114-
cwl_tool['outputs'][out_param.id] = out_param.get_dict()
110+
cwl_tool['outputs'] = {}
111+
for out_param in self.outputs:
112+
cwl_tool['outputs'][out_param.id] = out_param.get_dict()
115113

116114
# If metadata are present in the description
117115
if getattr(self, 'metadata', None):

0 commit comments

Comments
 (0)