Skip to content
Snippets Groups Projects
Select Git revision
  • 7a68b75e038a68d10ca93ef268a8f5ed8d3d2664
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

CS1.parset

Blame
    • John Romein's avatar
      7a68b75e
      BugID: 225 · 7a68b75e
      John Romein authored
      CS1.parset determines whether InputSection and BGLProc, and BGLProc and Storage
      should really connect.
      7a68b75e
      History
      BugID: 225
      John Romein authored
      CS1.parset determines whether InputSection and BGLProc, and BGLProc and Storage
      should really connect.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    find_skymodel_target.cwl 1.68 KiB
    class: CommandLineTool
    cwlVersion: v1.0
    $namespaces:
      sbg: 'https://www.sevenbridges.com/'
    id: find_skymodel_target_py
    baseCommand:
      - python3
    inputs:
        - id: msin
          type: Directory[]
          doc: MS containing the target
          inputBinding:
            position: 0
        - id: SkymodelPath
          type: File?
          doc: File containing or putting the skymodel
        - id: Radius
          type: float?
          doc: Radius of the skymodel
          default: 5.0
        - id: Source
          type: string?
          doc: Source of the skymodel
          default: 'TGSS'
        - id: DoDownload
          type: boolean?
          doc: Download a new skymodel if given path is empty
          default: true
    
    label: find_skymodel_target.py
    arguments:
      - '-c'
      - |
        import sys
        import shutil
        import os
        null = None
    
        from download_skymodel_target import main as download_skymodel_target
    
        mss = sys.argv[1:]
    
        SkymodelPath = $(inputs.SkymodelPath)
        if SkymodelPath is None:
            SkymodelPath = os.getcwd() + "/target.skymodel"
        else:
            SkymodelPath = SkymodelPath["path"]
    
        Radius = $(inputs.Radius)
        Source = "$(inputs.Source)"
        DoDownload = "$(inputs.DoDownload)"
        
        output = download_skymodel_target(mss, SkymodelPath, Radius, DoDownload, Source)
        
        if "target.skymodel" not in SkymodelPath:
           shutil.copyfile(SkymodelPath, "target.skymodel")
       
    outputs:
      - id: skymodel
        type: File?
        outputBinding:
          glob: target.skymodel
      - id: logfile
        type: File?
        outputBinding:
          glob: find_skymodel_target.log    
            
    requirements:
      - class: InlineJavascriptRequirement
    
    hints:
      DockerRequirement:
        dockerPull: lofareosc/prefactor:HBAcalibrator
    stdout: find_skymodel_target.log