Skip to content
Snippets Groups Projects
Select Git revision
  • 588a84173d48440aabef7d6e76f64d2f6083cace
  • master default protected
  • L2SDP-LIFT
  • L2SDP-1113
  • HPR-158
5 results

hdllib.cfg

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    plot_unflagged.cwl 1.12 KiB
    class: CommandLineTool
    cwlVersion: v1.1
    $namespaces:
      sbg: 'https://www.sevenbridges.com/'
    id: plot_unflagged
    baseCommand:
      - python3
    inputs:
      - id: msin
        type: 'Directory[]'
        inputBinding:
          position: 1
      - id: unflagged_fraction
        type: float[]
        inputBinding:
          position: 2
          
    label: plot_unflagged
    arguments:
      - '-c'
      - |
        import sys
        import os
    
        from plot_unflagged_fraction import main as plot_unflagged_fraction
    
        center = int((len(sys.argv) - 1) / 2 + 1)
        
        mss = sys.argv[1:center]
        unflagged_fraction = sys.argv[center:]
        
        output = plot_unflagged_fraction(ms_list = mss, frac_list = unflagged_fraction, outfile = os.getcwd() + '/unflagged_fraction.png')
    
    outputs:
      - id: output_imag
        doc: Output image
        type: File
        outputBinding:
          glob: 'unflagged_fraction.png'
      - id: logfile
        type: File[]
        outputBinding:
          glob: 'plot_unflagged_fraction*.log'
    
        
    hints:
      - class: DockerRequirement
        dockerPull: 'lofareosc/prefactor3-cwl'
    requirements:
      - class: InlineJavascriptRequirement
    stdout: plot_unflagged_fraction.log
    stderr: plot_unflagged_fraction_err.log