Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig Class Reference
Collaboration diagram for pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig:

Public Member Functions

_CppHyperisoConfig to_cpp (self)
 
str __repr__ (self)
 

Static Public Attributes

Dict flags
 
Model model = Model.SM
 
Optional mty_model_name = None
 
Optional mty_model_path = None
 
Optional mty_bsm_mapping_path = None
 

Detailed Description

Python configuration for ``HyperisoMaster``.

Attributes:
    flags: Mapping of external flags to booleans. Missing flags are not
        explicitly set in C++; the default mapping mirrors the common
        Python workflow.
    model: Physics model selected for the session.
    mty_model_name: Optional MARTY model name used by the C++ backend.
    mty_model_path: Optional path to the MARTY model directory or file.
    mty_bsm_mapping_path: Optional user-provided BSM MARTY/Hyperiso mapping JSON.

Examples:
    >>> from pathlib import Path
    >>> cfg = HyperisoConfig(
    ...     model=Model.SM,
    ...     mty_model_name="MSSM_UFO",
    ...     mty_model_path=Path("/path/to/marty/model"),
    ...     mty_bsm_mapping_path=Path("/path/to/zprime_mapping.json"),
    ... )
    >>> cpp_cfg = cfg.to_cpp()

Definition at line 36 of file HyperisoConfig.py.

Member Function Documentation

◆ __repr__()

str pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.__repr__ (   self)
Return a compact representation suitable for logs.

Definition at line 93 of file HyperisoConfig.py.

◆ to_cpp()

_CppHyperisoConfig pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.to_cpp (   self)
Convert this Python config into the bound C++ config.

Returns:
    C++ ``HyperisoConfig`` instance ready to pass to pybind methods.

Definition at line 72 of file HyperisoConfig.py.

Member Data Documentation

◆ flags

Dict pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.flags
static
Initial value:
= field(
default_factory=lambda: {
ExternalFlag.IS_LHA_SPECTRUM: False,
ExternalFlag.HAS_WILSON_INPUT: False,
ExternalFlag.HAS_TH_OBSERVABLE_INPUT: False,
ExternalFlag.HYP_AS_SM_MARTY: False,
}
)

Definition at line 59 of file HyperisoConfig.py.

◆ model

Model pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.model = Model.SM
static

Definition at line 67 of file HyperisoConfig.py.

◆ mty_bsm_mapping_path

Optional pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.mty_bsm_mapping_path = None
static

Definition at line 70 of file HyperisoConfig.py.

◆ mty_model_name

Optional pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.mty_model_name = None
static

Definition at line 68 of file HyperisoConfig.py.

◆ mty_model_path

Optional pyhyperiso.core.Core.HyperisoConfig.HyperisoConfig.mty_model_path = None
static

Definition at line 69 of file HyperisoConfig.py.


The documentation for this class was generated from the following file: