slophep.Fitting.Parameter
- class slophep.Fitting.Parameter.Parameter(name: str, val: float, limlo: float = None, limhi: float = None, fixed: bool = False)[source]
Bases:
object- property constrain: bool
Whether parameter is constrained
- property constraintvals: list[float]
The values for gaussian constraint, in form [mu, sigma]
- property fixed: bool
Whether parameter is fixed
- property limhi: float
Upper limit
- property limlo: float
Lower limit
- property name: str
Parameter name
- property uuid: str
Unique hash ID
- property val: float
Parameter value
- class slophep.Fitting.Parameter.ParameterManager[source]
Bases:
object- addParam(par: Parameter)[source]
Add parameter to manager
- Parameters:
par (Parameter)
- Raises:
KeyError – If there is already an existing parameter with the same name
- getParam(parname: str) Parameter[source]
Get Parameter object from manager
- Parameters:
parname (str) – Name of the parameter
- Return type:
- getVal(parname: str)[source]
Get value of a parameter
- Parameters:
parname (str) – The name of the parameter
- property id_map: dict[str, str]
Correspondence of parameter names to hash ID
- property params: dict[str, Parameter]
Dictionary of all parameters in manager, indexed by their uniue hash ID