pyfct_to_script#

static BaseRunner.pyfct_to_script(fct: Callable, inputs: List[Any], label: str, pckgs: List[str] | None = None) None#

Convert a Python function to a standalone script file.

Parameters:
fctCallable

The function to convert to a script.

inputsList[Any]

Input arguments for the function.

labelstr

Label used for naming output files.

pckgsOptional[List[str]], optional

Additional import statements to include, e.g. [“import numpy as np”] (default: None).