Skip to content

Instantly share code, notes, and snippets.

@emileten
Last active May 31, 2024 14:17
Show Gist options
  • Save emileten/43046d651b48d08d04b4a904a61e895f to your computer and use it in GitHub Desktop.
Save emileten/43046d651b48d08d04b4a904a61e895f to your computer and use it in GitHub Desktop.
osc-physrik-cli
cwlVersion: v1.2
$graph:
- class: Workflow
id: get-asset-impact-workflow
label: get asset impact
doc: get asset impact
requirements:
NetworkAccess:
networkAccess: true
inputs:
json_file:
type: string
doc: the file to transform
outputs:
- id: asset-result
type: Directory
outputSource:
- get-impact/asset-result
steps:
get-impact:
run: "#get-asset-impact"
in:
json_file: json_file
out:
- asset-result
- class: CommandLineTool
id: get-asset-impact
requirements:
NetworkAccess:
networkAccess: true
DockerRequirement:
dockerPull: public.ecr.aws/c9k5s3u3/osc-physrisk:latest
baseCommand: get_asset_impact.py
inputs:
json_file:
type: string
inputBinding:
prefix: --json_file=
separate: false
position: 4
outputs:
asset-result:
type: Directory
outputBinding:
glob: "./asset_output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment