Skip to content

Commit edbe28e

Browse files
vjaganat90Vasu Jaganath
andauthored
remove redundant io in main & remove irrelevant warning/exit in compiler (PolusAI#284)
* add user args for workflows built with python api * remove redundant io in main & remove irrelevant warning/exit in compiler --------- Co-authored-by: Vasu Jaganath <[email protected]>
1 parent 7719daf commit edbe28e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/sophios/compiler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,6 @@ def compile_workflow_once(yaml_tree_ast: YamlTree,
881881
new_keyval = {key: newval}
882882
elif 'Directory' == in_dict['type']:
883883
if not args.ignore_dir_path:
884-
if in_dict['value'].startswith('/'):
885-
print("Warning! directory can not start with '/'")
886-
print("It is most likely an incorrect path! Can't create directories!")
887-
sys.exit(1)
888884
ldir = Path(in_dict['value'])
889885
if not ldir.is_absolute():
890886
ldir = Path('autogenerated') / ldir

src/sophios/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ def main() -> None:
194194
print("(This may happen if you installed the graphviz python package")
195195
print("but not the graphviz system package.)")
196196

197-
if args.generate_cwl_workflow:
198-
io.write_to_disk(rose_tree, Path('autogenerated/'), True, args.inputs_file)
199-
200197
if args.run_local or args.generate_run_script:
201198
# cwl-docker-extract recursively `docker pull`s all images in all subworkflows.
202199
# This is important because cwltool only uses `docker run` when executing

0 commit comments

Comments
 (0)