KConfig#
- class jinwu.spectrum.KConfig(arf: str, rmf: str, background: str | None, model: str, params: Tuple[float, ...], band: Tuple[float, float], exposure: float | int | floating | integer, back_exposure: float | int | floating | integer | None, xspec_abund: str, xspec_xsect: str, xspec_cosmo: str = '67.66 -0.534016305544544 0.6888463055445441', allow_prompting: bool = False)[source]#
Bases:
objectK 计算所需的不可变配置对象。 Immutable config for K computation.
字段 | Fields - arf/rmf/background: 路径字符串 | file paths - model/params: XSPEC 模型与参数 | XSPEC model and parameter values - band: (emin, emax) [keV] 能段 | energy band in keV - exposure/back_exposure: 源/背景曝光秒数 | source/background exposure (s) - xspec_abund/xspec_xsect/xspec_cosmo: XSPEC 环境常量 | XSPEC globals - allow_prompting: 是否允许 XSPEC 交互提示 | whether to allow XSPEC prompting
Attributes Summary
Methods Summary
key()将配置编码为缓存键(SHA256)。 Encode configuration into a cache key (SHA256).
Attributes Documentation
Methods Documentation