We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fb488 commit 59db357Copy full SHA for 59db357
cwltool/main.py
@@ -836,6 +836,18 @@ def my_represent_none(self, data): # pylint: disable=unused-argument
836
if runtimeContext.research_obj is not None:
837
runtimeContext.research_obj.create_job(
838
out, None, True)
839
+ def remove_at_id(doc): # type: MutableMapping -> None
840
+ for key in list(doc.keys()):
841
+ if key == '@id':
842
+ del doc[key]
843
+ else:
844
+ value = doc[key]
845
+ if isinstance(value, MutableMapping):
846
+ remove_at_id(value)
847
+ elif isinstance(value, MutableSequence):
848
+ for entry in value:
849
+ remove_at_id(entry)
850
+ remove_at_id(out)
851
852
def loc_to_path(obj): # type: (Dict[Text, Any]) -> None
853
for field in ("path", "nameext", "nameroot", "dirname"):
0 commit comments