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
Showing
- lofar-cwl/steps/DP3.ParsetGenerator.cwl 42 additions, 42 deletionslofar-cwl/steps/DP3.ParsetGenerator.cwl
- lofar-cwl/steps/LoSoTo.Replicateonaxis.cwl 7 additions, 4 deletionslofar-cwl/steps/LoSoTo.Replicateonaxis.cwl
- steps/check_unflagged_fraction.cwl 29 additions, 32 deletionssteps/check_unflagged_fraction.cwl
- steps/compare_station_list.cwl 21 additions, 22 deletionssteps/compare_station_list.cwl
- steps/filter_ms_group.cwl 11 additions, 10 deletionssteps/filter_ms_group.cwl
- steps/findRefAnt_join.cwl 12 additions, 11 deletionssteps/findRefAnt_join.cwl
- steps/find_skymodel_cal.cwl 16 additions, 15 deletionssteps/find_skymodel_cal.cwl
- steps/find_skymodel_target.cwl 29 additions, 30 deletionssteps/find_skymodel_target.cwl
- steps/identify_bad_antennas_join.cwl 23 additions, 22 deletionssteps/identify_bad_antennas_join.cwl
- steps/sort_times_into_freqGroups.cwl 35 additions, 38 deletionssteps/sort_times_into_freqGroups.cwl