Skip to content

Commit

Permalink
Merge pull request #31 from FNNDSC/28-boolean-flag
Browse files Browse the repository at this point in the history
28 boolean flag
  • Loading branch information
Sandip117 committed Jul 25, 2023
2 parents de2156a + 4c2cb9b commit 8bb9329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/subprocesses/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def get_cube_url_from_pfdcm(pfdcm_url: str, cube_name: str) -> str:
response = requests.get(pfdcm_smdb_cube_api)
d_results = json.loads(response.text)
cube_url = d_results['cubeInfo']['url']

return cube_url


Expand Down
7 changes: 6 additions & 1 deletion app/controllers/subprocesses/wf_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def __run_plugin_instance(previous_id: str, request: WorkflowRequestSchema, clie
# convert CLI params from string to a JSON dictionary
feed_params = str_to_param_dict(request.workflow_info.plugin_params)
feed_params["previous_id"] = previous_id
logging.info(f"Creating new analysis with parameters: {feed_params}")
feed_resp = client.createFeed(plugin_id, feed_params)


Expand Down Expand Up @@ -267,7 +268,11 @@ def str_to_param_dict(params: str) -> dict:
continue
param = param.strip()
items = param.split(' ',1)
d_params[items[0]] = items[1]
if len(items)==1:
d_params[items[0]] = True
else:
d_params[items[0]] = items[1]


return d_params

Expand Down

0 comments on commit 8bb9329

Please sign in to comment.