Skip to content

process-project/PREFACTOR_pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Readme for LOFAR pipeline template for the LOFAR rest API

This is a template to use for implementing a new pipeline into the LOFAR rest API (https://github.com/EOSC-LOFAR/lofar_workflow_api).

Implement your own pipeline in the LOFAR rest API using this template

  1. Copy this template and rename the directories called "LOFAR_pipeline_template". Also replace "LOFAR_pipeline_template" in the setup.py. Replace it with a sensible name for your pipeline.

  2. Implement the run_pipeline(observation, **kargs). This function should run the pipeline in the background in anyway you want. The kargs variable is a dict with the keys as given by the data/config.json file.

  3. Edit the data/config.json file. It should contain all the parameters needed by the pipeline to run and their requirements.

  4. Use pip install to install your pipeline python package for the rest API.

  5. In the rest API alter the pipeline_administrator.py (https://github.com/EOSC-LOFAR/lofar_workflow_api/blob/master/lofar_workflow_api/api/pipeline_administrator.py) in the following way 4.1 Add your pipeline package to the import (e.g. import pipeline1, pipeline2, ) 4.2 Add your pipeline to the dict in the get_available_pipelines() function. E.g.:

	def get_available_pipelines():
		return {pipeline1.give_name(): pipeline1, 
			pipeline2.give_name(): pipeline2,
			<your pipeline>.give_name(): <your pipeline>}

PROCESS-UC2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages