|
1 | 1 | from pathlib import Path |
2 | | -import argparse |
| 2 | +# import argparse |
3 | 3 | import copy |
4 | 4 | import yaml |
5 | 5 |
|
@@ -41,31 +41,31 @@ def remove_dot_dollar(tree: Cwl) -> Cwl: |
41 | 41 | return tree_no_dd |
42 | 42 |
|
43 | 43 |
|
44 | | -def run_workflow(compiler_info: CompilerInfo, args: argparse.Namespace) -> int: |
45 | | - """ |
46 | | - Get the Sophios yaml tree from incoming JSON |
47 | | - Args: |
48 | | - req (JSON): A raw JSON content of incoming JSON object |
49 | | - Returns: |
50 | | - Cwl: A Cwl document with . and $ removed from $namespaces and $schemas |
51 | | - """ |
52 | | - # ========= WRITE OUT ======================= |
53 | | - basepath = 'autogenerated' |
54 | | - input_output.write_to_disk(compiler_info.rose, Path(basepath), relative_run_path=True) |
55 | | - # ======== TEST RUN ========================= |
56 | | - # verify container_engine install and config |
57 | | - verify_container_engine_config(args.container_engine, args.ignore_docker_install) |
58 | | - run_args_dict = {} |
59 | | - run_args_dict['container_engine'] = args.container_engine |
60 | | - run_args_dict['cwl_runner'] = args.cwl_runner |
61 | | - run_args_dict['copy_output_files'] = str(args.copy_output_files) |
62 | | - rose_tree = compiler_info.rose |
63 | | - retval = run_local.run_local(run_args_dict, False, passthrough_args=[], |
64 | | - workflow_name=rose_tree.data.name, basepath=basepath) |
65 | | - retval_local = 1 |
66 | | - if retval: |
67 | | - retval_local = retval |
68 | | - return retval_local |
| 44 | +# def run_workflow(compiler_info: CompilerInfo, args: argparse.Namespace) -> int: |
| 45 | +# """ |
| 46 | +# Get the Sophios yaml tree from incoming JSON |
| 47 | +# Args: |
| 48 | +# req (JSON): A raw JSON content of incoming JSON object |
| 49 | +# Returns: |
| 50 | +# Cwl: A Cwl document with . and $ removed from $namespaces and $schemas |
| 51 | +# """ |
| 52 | +# # ========= WRITE OUT ======================= |
| 53 | +# basepath = 'autogenerated' |
| 54 | +# input_output.write_to_disk(compiler_info.rose, Path(basepath), relative_run_path=True) |
| 55 | +# # ======== TEST RUN ========================= |
| 56 | +# # verify container_engine install and config |
| 57 | +# verify_container_engine_config(args.container_engine, args.ignore_docker_install) |
| 58 | +# run_args_dict = {} |
| 59 | +# run_args_dict['container_engine'] = args.container_engine |
| 60 | +# run_args_dict['cwl_runner'] = args.cwl_runner |
| 61 | +# run_args_dict['copy_output_files'] = str(args.copy_output_files) |
| 62 | +# rose_tree = compiler_info.rose |
| 63 | +# retval = run_local.run_local(run_args_dict, False, passthrough_args=[], |
| 64 | +# workflow_name=rose_tree.data.name, basepath=basepath) |
| 65 | +# retval_local = 1 |
| 66 | +# if retval: |
| 67 | +# retval_local = retval |
| 68 | +# return retval_local |
69 | 69 |
|
70 | 70 |
|
71 | 71 | app = FastAPI() |
|
0 commit comments