pleiades.sammy.io.card_formats.inp10_spingroups module

class pleiades.sammy.io.card_formats.inp10_spingroups.Card10p2[source]

Bases: BaseModel

Model for the INP10 card format (spin groups).

static is_header_line(line: str) bool[source]
static get_line_type(line: str)[source]
Returns:

“SPIN_GROUP” if the line is a spin group line, “CHANNEL” if the line is a channel line, None otherwise.

classmethod from_lines(lines: List[str], fit_config: FitConfig = None) None[source]
classmethod to_lines(fit_config: FitConfig) List[str][source]
model_config = {}

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