hepi.run.madgraph.run¶
Runs MadGraph.
Module Contents¶
Classes¶
Parameters for MadGraph. |
|
Attributes¶
Default MadGraph Runner to provide backward compatibility |
|
- class hepi.run.madgraph.run.MadGraphRunParams(dic, skip=False, madstr=True)[source]¶
Bases:
hepi.run.RunParamParameters for MadGraph.
- class hepi.run.madgraph.run.MadGraphRunner(path, in_dir=None, out_dir=None, pre=None)[source]¶
Bases:
hepi.run.Runner- Parameters:
path (str) –
in_dir (str) –
out_dir (str) –
- _check_input(param, **kwargs)[source]¶
Checks input parameter for compatibility with Prospino
- Parameters:
param (hepi.run.Input) –
- Return type:
bool
- _is_valid(file, p, d)[source]¶
Verifies that a file is a complete output.
- Parameters:
file (str) – File path to be parsed.
p (
hepi.Input) – Onput parameters.d (
dict) – Param dictionary.
- Returns:
True if file could be parsed.
- Return type:
bool
- _parse_file(file)[source]¶
Extracts results from an output file.
- Parameters:
file (str) – File path to be parsed.
- Returns:
If a value is not found in the file None is used.
- Return type:
Result
- _run(rps, wait=True, parallel=True, sleep=0, **kwargs)[source]¶
Runs Runner per
RunParams.- Args:
rps (
listofRunParams): Extended run parameters. bar (bool): Enable info bar. wait (bool): Wait for parallel runs to finish. sleep (int): Sleep seconds after starting subprocess. parallel (bool): Run jobs in parallel.
n_jobs (int): Number of parallel jobs. If None, use all available cores.
- Returns:
listof int: return codes from jobs if no_parse is False.
- Parameters:
rps (List[hepi.run.RunParam]) –
- _prepare(p, **kwargs)[source]¶
- Parameters:
p (hepi.run.Input) –
- Return type: