pleiades.sammy.parameters.user_resolution module
Parser for SAMMY’s Card Set 16 (User-Defined Resolution Function) parameters.
Format specification from Table VI B.2: Card Set 16 defines user-defined resolution functions with the following components:
Header line (“USER-Defined resolution function”)
Optional BURST line for burst width parameters
Optional CHANN lines for channel-dependent parameters
Required FILE= lines specifying data files
Each section has specific fixed-width format requirements.
- class pleiades.sammy.parameters.user_resolution.Card16ParameterType(value)[source]
-
Enumeration of Card 16 parameter types.
- USER = 'USER'
- BURST = 'BURST'
- CHANN = 'CHANN'
- FILE = 'FILE='
- class pleiades.sammy.parameters.user_resolution.UserResolutionParameters(*, type: Card16ParameterType = Card16ParameterType.USER, burst_width: float | None = None, burst_uncertainty: float | None = None, burst_flag: VaryFlag = VaryFlag.NO, channel_energies: List[float] = <factory>, channel_widths: List[float] = <factory>, channel_uncertainties: List[float | None] = <factory>, channel_flags: List[VaryFlag] = <factory>, filenames: List[str] = <factory>)[source]
Bases:
BaseModelContainer for User-Defined Resolution Function parameters.
- type
Parameter type identifier (always “USER”)
- burst_flag
Flag for varying burst width
- channel_flags
List of flags for varying channel widths
- Type:
- type: Card16ParameterType
- classmethod from_lines(lines: List[str]) UserResolutionParameters[source]
Parse user resolution parameters from fixed-width format lines.
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].