Versatile computation submission tool
pip install pysubmit==1.0.1
The versatile computation submission tool.
Scientists who use computational methods often face the problem to test various parameter values as input for their numerical codes.
Having the power of high performance computer clusters (HPCs) at hand, it is easy to test up to multiple thousand input parameter values simultaneously. However, HPCs typically use batch systems that schedule computation jobs so that special files called start scripts are required to get your computation running. These start scripts are even useful for computations on your local workstations.
This tool enables to generate these start scripts with ease and for arbitrary interfaces to your numerical code. The parameters are supplied using Python and a boilerplate of your start script that needs to be filled with values.
TODO: Pip and setuptools.
Copy the file examples/pysubmitrc
to your folder ~/.pysubmitrc
. This
file serves as configuration file for PySubmit.
To generate start scripts with PySubmit, all you need to do is to write down your desired '''template'''.
[ ("test.sh", {"variable": 42}) ]
{templates}
directory. Put the boilerplate as boilerplate
and the function as {name}/render.py/render()
in there. The
trick of __name__=="__main__"
can be used to debug your function.{output}
$ python pysubmit.py generate {name} [-sum]
More examples can be found in examples/
.
INSTALLATION