Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
pyhyperiso.core.Common.Mapper Namespace Reference

Classes

class  ContributionTypeMapper
 
class  CustomObservableSpec
 
class  DecayId
 
class  DecayMapper
 
class  GroupMapper
 
class  MassTypeMapper
 
class  ModelMapper
 
class  ObservableMapper
 
class  OrderMapper
 
class  ParameterTypeMapper
 
class  ScaleTypeMapper
 
class  WCoefMapper
 
class  WilsonBasisMapper
 

Functions

 _cpp_lhaid_or_none (Optional[LhaID] ext)
 
ObservableId _wrap_observable_id (cpp_id)
 
DecayId _wrap_decay_id (cpp_id)
 
WGroupId _wrap_wgroup_id (cpp_id)
 
WCoefId _wrap_wcoef_id (cpp_id)
 
 _unwrap_optional_or_none (cpp_optional, str label)
 

Detailed Description

Python wrappers around C++ enum/name mappers.

The C++ core exposes a family of mapper classes that convert between enum
values, canonical names, and sometimes domain-specific identifiers. This module
keeps those conversions available from Python while returning Python wrapper
objects where appropriate, for example :class:`ObservableId` and
:class:`LhaID`.

Function Documentation

◆ _cpp_lhaid_or_none()

pyhyperiso.core.Common.Mapper._cpp_lhaid_or_none ( Optional[LhaID ext)
protected
Return the C++ ``LhaID`` object or ``None`` for optional mapper APIs.

Definition at line 93 of file Mapper.py.

◆ _unwrap_optional_or_none()

pyhyperiso.core.Common.Mapper._unwrap_optional_or_none (   cpp_optional,
str  label 
)
protected
Return the value stored in a pybind optional, or ``None`` if empty.

Definition at line 122 of file Mapper.py.

◆ _wrap_decay_id()

DecayId pyhyperiso.core.Common.Mapper._wrap_decay_id (   cpp_id)
protected
Wrap a bound C++ ``DecayId`` as a Python ``DecayId``.

Definition at line 107 of file Mapper.py.

◆ _wrap_observable_id()

ObservableId pyhyperiso.core.Common.Mapper._wrap_observable_id (   cpp_id)
protected
Wrap a bound C++ ``ObservableId`` as a Python ``ObservableId``.

Definition at line 102 of file Mapper.py.

◆ _wrap_wcoef_id()

WCoefId pyhyperiso.core.Common.Mapper._wrap_wcoef_id (   cpp_id)
protected
Wrap a bound C++ ``WCoefId`` as a Python ``WCoefId``.

Definition at line 117 of file Mapper.py.

◆ _wrap_wgroup_id()

WGroupId pyhyperiso.core.Common.Mapper._wrap_wgroup_id (   cpp_id)
protected
Wrap a bound C++ ``WGroupId`` as a Python ``WGroupId``.

Definition at line 112 of file Mapper.py.