Skip to content
Snippets Groups Projects
Commit 0ea72468 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Modified script for missing unecessary libs

parent 33498fbe
No related branches found
No related tags found
1 merge request!69Change the name of the pre-calibrated output MS
Pipeline #168 canceled
......@@ -9,6 +9,8 @@ inputs:
- id: msin
type: Directory[]
doc: MSs containing the calibrator
inputBinding:
position: 0
- id: skymodels
type: Directory
doc: Directory containing the sky models
......@@ -20,12 +22,15 @@ label: find_skymodel_cal.py
arguments:
- '-c'
- |
from unittest.mock import MagicMock
sys.modules['lofarpipe.support.data_map'] = MagicMock()
import sys
from find_skymodel_cal import main as find_skymodel
import json
mss = list(
map(lambda x: x['path'],
filter(lambda x: x['class'] == 'Directory', $(inputs.msin))))
skymodels = $(inputs.skymodels)['path']
mss = sys.argv[1:]
skymodels = "$(inputs.skymodels.path)"
extension = "$(inputs.skymodels_extension)"
output = {}
......@@ -50,4 +55,4 @@ requirements:
hints:
DockerRequirement:
dockerPull: lofar/lofar-pipeline
dockerPull: lofareosc/prefactor-ci
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