pleiades.sammy.io.card_formats.inp04_particlepairs module

class pleiades.sammy.io.card_formats.inp04_particlepairs.Card04[source]

Bases: BaseModel

static is_header_line(line: str) bool[source]
static normalize_keywords(line: str) str[source]
static is_fixed_format_line(line: str) bool[source]
static parse_fixed_format_line(line: str) Dict[str, str][source]
static parse_key_value_line(line)[source]
classmethod from_lines(lines: List[str], fit_config: FitConfig = None) None[source]

Parse a complete Card 4 from lines. :param lines: List of input lines including header and blank terminator :param fit_config: FitConfig object to read particle pairs into.

static to_lines(fit_config: FitConfig) List[str][source]

Convert the particle pairs to lines for Card 4 in keyword format, including Q and Threshold if present and nonzero.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].