Skip to content
Snippets Groups Projects
Commit d48e8473 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Fix the mapping between CWL inputs, which are in JSON format, and Python...

Fix the mapping between CWL inputs, which are in JSON format, and Python types, for CWL steps that contain inline Python script.

The solution is to convert the CWL `$(inputs)` once to a Python `dict`, by using the `json.loads()` function, passing the `$(inputs)` as a raw Python string. Next, any input argument can be accessed as an entry in a Python `dict`.

Also, to avoid potential "Argument list too long" errors, all inline Python scripts that expand the `$(inputs)` argument are now automatically turned into a script *file*, instead of being passed as a (potentially huge) string on the command line.


Former-commit-id: 250aa9d1
Former-commit-id: 2b7fc297
parent 89ffab29
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment