File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,8 @@ def __init__(
201
201
self .cwlVersion = cwl_version
202
202
self .id = tool_id
203
203
self .label = label
204
- self .requirements = [] # List of Several object inhereting from [Requirement]
205
- self .hints = []
204
+ self .requirements = [] # List of objects inheriting from [Requirement]
205
+ self .hints = [] # List of objects inheriting from [Requirement]
206
206
self .inputs = [] # List of [CommandInputParameter] objects
207
207
self .outputs = [] # List of [CommandOutputParameter] objects
208
208
self .baseCommand = base_command
@@ -235,6 +235,9 @@ def get_dict(self):
235
235
236
236
if self .requirements :
237
237
d ["requirements" ] = {r .get_class (): r .get_dict () for r in self .requirements }
238
+ if self .hints :
239
+ d ["hints" ] = {r .get_class (): r .get_dict () for r in self .hints }
240
+
238
241
return d
239
242
240
243
@classmethod
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ def get_dict(self):
78
78
79
79
if self .requirements :
80
80
cwl_workflow ['requirements' ] = {r .get_class (): r .get_dict () for r in self .requirements }
81
+ if self .hints :
82
+ cwl_workflow ["hints" ] = {r .get_class (): r .get_dict () for r in self .hints }
81
83
82
84
return cwl_workflow
83
85
You can’t perform that action at this time.
0 commit comments