Helper function for unpickling a user function and its parameters and running it.

Normally called from, but some parallel methods (MPI, multiprocessing etc) manage their own forking of the Python process so we must have this available as an importable function.

rios.parallel.subproc.runJob(inf, outf, inFileName=None)[source]

Run one job reading the pickle from inf and writing the output to outf.

if inFileName is not None then then it will be deleted once it is read from.