Skip to content

Commit

Permalink
remove metags from inline cwl in runtag (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: Vasu Jaganath <vasu.jaganath@axleinfo.com>
  • Loading branch information
vjaganat90 and Vasu Jaganath authored Aug 21, 2024
1 parent e6b61e3 commit 584f541
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sophios/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def cwl_update_inline_runtag(cwl: Cwl, path: Path, relative_run_path: bool) -> C
yml_path = Path(runtag_orig) # Assume absolute path in the runtag
with open(yml_path, mode='r', encoding='utf-8') as f:
runtag_raw = yaml.safe_load(f.read())
# local $namespace and $schema tag shouldn't be in inline cwl steps
runtag_raw.pop('$namespaces', None)
runtag_raw.pop('$schemas', None)
step['run'] = runtag_raw
else:
pass # We only care if the runtag is a cwl filepath
Expand Down

0 comments on commit 584f541

Please sign in to comment.