Skip to content
Snippets Groups Projects
Select Git revision
  • 89ffab29f55f52d8fdfa096b0330a9630a9380d6
  • master default protected
  • releases/v5.1rc1 protected
  • reverse_versions
  • optimize_workflow
  • poppy_integration_v50
  • poppy_integration
  • releases/v5.0 protected
  • use-versioned-releases
  • releases/v5.0rc2 protected
  • releases/v5.0rc1 protected
  • releases/ldv_v407_atdb protected
  • ldv_v407_debug
  • releases/ldv_v406_debug protected
  • releases/ldv_v405 protected
  • releases/ldv_v404 protected
  • v5.0
  • v5.0rc2
  • v5.0rc1
  • ldv_v406_debug
  • ldv_v405_debug
  • ldv_v404
  • ldv_v403
  • ldv_v402
  • v4.0
  • ldv_v401
  • ldv_v40
  • ldv_v031
  • ldv_v03
  • ldv_v01
30 results

plot_unflagged.cwl

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