Skip to content

Commit fecea8d

Browse files
committed
Implement wf_info() vs wf_type() and wf_version()
1 parent 36687e5 commit fecea8d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

wes_client/util.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
import json
33
import subprocess
44
import yaml
5+
import glob
6+
import requests
7+
import urllib
8+
import logging
9+
import schema_salad.ref_resolver
10+
11+
from wes_service.util import visit
512
from urllib import urlopen
613

714

@@ -69,10 +76,11 @@ def build_wes_request(workflow_file, json_path, attachments=None):
6976
"""
7077
workflow_file = "file://" + workflow_file if ":" not in workflow_file else workflow_file
7178
json_path = json_path[7:] if json_path.startswith("file://") else json_path
79+
wf_version, wf_type = wf_info(workflow_file)
7280

7381
parts = [("workflow_params", json.dumps(json.load(open(json_path)))),
74-
("workflow_type", wf_type(workflow_file)),
75-
("workflow_type_version", wf_version(workflow_file))]
82+
("workflow_type", wf_type),
83+
("workflow_type_version", wf_version)]
7684

7785
if workflow_file.startswith("file://"):
7886
parts.append(("workflow_attachment", (os.path.basename(workflow_file[7:]), open(workflow_file[7:], "rb"))))

0 commit comments

Comments
 (0)