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
Submodules
pinefarm.external.integrability module
pinefarm.external.interface module
Abstract interface.
- class pinefarm.external.interface.External(name, theory, pdf, timestamp=None)[source]
Bases:
ABCInterface class for external providers.
- Parameters:
- 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
- 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.