NuRadioMC.utilities.runner module

class NuRadioMC.utilities.runner.NuRadioMCRunner(n_worker, task, output_path, kwargs={}, max_runtime=691200, n_triggers_max=1000000.0, max_crashes=10)[source]

Bases: object

The purpose of this classe is to run NuRadioMC on a cluster using a full node submission, i.e., a full node with X cores is reserved. As NuRadioMC is a single-core process, this class will start multiple NuRadioMC simulations and will distribute them on the X cores. As soon as one job is finished, a new one is started so that all X cores are kept busy. The job ends after a fixed time, or after enough triggers are acquired, or after X crashes occurred.

Methods

get_outputfilename()

define how output files are named

run

get_outputfilename()[source]

define how output files are named

run()[source]