Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.34 KB

File metadata and controls

37 lines (27 loc) · 1.34 KB

Template Python Operator

Cell-wise mean calculated implemented in Python.

Python operator - Development workflow

pip3 install -r requirements.txt
  • Develop your operator. Note that you can interact with an existing data step by specifying arguments to the TercenContext function:
tercenCtx = ctx.TercenContext()
tercenCtx = ctx.TercenContext(
    workflowId="YOUR_WORKFLOW_ID",
    stepId="YOUR_STEP_ID",
    serviceUri = "http://tercen:5400/" # if using the local Tercen instance 
)
  • Update the requirements.txt file with relevant dependencies
  • Push your changes to GitHub: triggers CI GH workflow
  • Tag the repository: triggers Release GH workflow
  • Go to tercen and install your operator

Check out the Developer's Guide for more information on how to develop operators.