PythonStep

Run a user defined python step. Parameters are passed to python. To make a python step work, make sure that the python libraries of DP3 are in the python path, e.g. by setting

export PYTHONPATH=/path/to/dp3/lib64/python3.6/site-packages:$PYTHONPATH

The example below shows a minimal example of a python step.

Note: import dp3 does not work from a python interpreter directly, it only works if the python code is run by DP3.

For a complete list of DP3 functions available in python see the source code of pydp3.cc

inputs

type

type:

string

doc:

Case-insensitive step type; must be python or pythondppp .

python.class

type:

string

doc:

Name of the python class that subclasses the Step class. In the example above, this should be MockPyStep.

python.module

type:

string

doc:

Name of the module where the python code lives. Typically this is the file name of the python code, which should be in the python path. E.g. if your code is in mockpystep.py in the working directory, set module to mockpystep.