pinefarm.external package
External interfaces module.
All imports of external interfaces are ‘hidden’
under the function decide_external_tool to avoid an
eager import and thus unnecessary installations of external codes.
- pinefarm.external.decide_external_tool(dsname: str)[source]
Decide the external tool to be used.
The decisions are based on the existence of a .yaml file with a specific name.
- Parameters:
dsname – name of the pinecard
- Returns:
external_interface – external interface to be used
color – color code of the interface
Subpackages
- pinefarm.external.mg5 package
- pinefarm.external.nnlojet package
- Submodules
- pinefarm.external.nnlojet.nnpdf_interface module
- pinefarm.external.nnlojet.runcardgen module
HistogramSelectorYamlLOJETYamlLOJET.active_channels()YamlLOJET.channel_names_listYamlLOJET.channelsYamlLOJET.get_channel_list()YamlLOJET.histogram_definitions()YamlLOJET.histogramsYamlLOJET.manualYamlLOJET.multi_channelYamlLOJET.parametersYamlLOJET.pdfYamlLOJET.processYamlLOJET.process_nameYamlLOJET.runnameYamlLOJET.scalesYamlLOJET.selector_definitions()YamlLOJET.selectorsYamlLOJET.techcut
generate_combine_ini()generate_runcard()parse_input_yaml()region_str_generator()
- pinefarm.external.nnlojet.runner module
Submodules
pinefarm.external.integrability module
pinefarm.external.interface module
Abstract interface.
- class pinefarm.external.interface.External(name, theory, pdf, timestamp=None, runcards_path=None, output_folder=None)[source]
Bases:
ABCInterface class for external providers.
- Parameters:
name (str) – dataset name
theory (dict) – theory dictionary
pdf (str) – PDF name
timestamp (str) – timestamp of already generated output folder
output_folder (pathlib.Path) – path of the already generated output folder
- abstract collect_versions() dict[source]
Collect necessary version informations.
- Returns:
program - version mapping related to programs specific to a single runner (common ones are already abstracted)
- Return type:
- abstract generate_pineappl()[source]
Generate PineAPPL grid and extract output.
- Returns:
output of
pineappl convoluteon the generate grid and selectedpdf- Return type:
- property grid
Target PineAPPL grid name.
- property gridtmp
Intermediate PineAPPL grid name.
- kind = None
- postprocess()[source]
Postprocess grid(s).
First run the postrun.sh script (if present), then apply metadata to all grids present in the folder.
The following environment variables will be populated for the underlying scripts to use:
GRID: if only one grid is available, path to the grid PINECARD: path to the pinecard folder
- abstract results()[source]
Results as computed by the program.
- Returns:
standardized dataframe with results (containing
result,error,sv_min, andsv_maxcolumns)- Return type:
- property source
Runcard base directory.
pinefarm.external.positivity module
Positivity interface.