pleiades.sammy.io.card_formats.par04_broadening module

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

Bases: BaseModel

Class representing the Card 4 format for broadening parameters in the SAMMY parameter file. This class is used to extract broadening information based on a default format.

classmethod is_header_line(line: str) bool[source]

Check if line is a valid header line.

Parameters:

line – Input line to check

Returns:

True if the first 5 characters of the line are ‘ISOTO’

Return type:

bool

classmethod from_lines(lines: List[str], fit_config: FitConfig) bool[source]

Read lines of the SAMMY parameter file and update the FitConfig object. This method extracts the broadening parameters from the lines based on the defined formats.

Parameters:
  • lines (list) – The lines of the SAMMY parameter file.

  • fit_config (FitConfig) – The FitConfig object to update.

Returns:

True if the lines were successfully read and processed.

Return type:

bool

classmethod to_lines(fit_config: FitConfig)[source]
model_config = {}

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