Commit b081f26e authored by mancini's avatar mancini

Remove unnecessary files

parent 3c95c0f6
type: array
name: MeasurementSet
label: The measurement set data location
items:
- name: main_directory
type: Directory
inputBinding:
position: 0
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
sbg: 'https://www.sevenbridges.com/'
id: find_skymodel_cal_py
baseCommand:
- python3
inputs:
- id: msin
type: Directory
doc: MS containing the calibrator
inputBinding:
position: 0
- id: skymodels
type: Directory
doc: Directory containing the sky models
- id: skymodels_extension
type: string?
doc: path extension of the sky models
label: find_skymodel_cal.py
arguments:
- '-c'
- |
import sys
from unittest.mock import MagicMock
sys.modules['lofarpipe.support.data_map'] = MagicMock()
from find_skymodel_cal import main as find_skymodel
import json
mss = sys.argv[1:]
skymodels = "$(inputs.skymodels.path)"
extension = "$(inputs.skymodels_extension)"
output = {}
if extension != 'null':
output = find_skymodel(mss, skymodels, './', extension)
else:
output = find_skymodel(mss, skymodels, './')
cwl_output = {'class': 'File', 'path': output['SkymodelCal']}
with open('./out.json', 'w') as fp:
json.dump(cwl_output, fp)
outputs:
- id: output_models
type: File
outputBinding:
loadContents: true
glob: 'out.json'
outputEval: $(JSON.parse(self[0].contents))
requirements:
- class: InlineJavascriptRequirement
hints:
DockerRequirement:
dockerPull: lofareosc/prefactor-ci:master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment