pleiades.sammy.io.card_formats.par01_resonances module
- class pleiades.sammy.io.card_formats.par01_resonances.Card01[source]
Bases:
BaseModelClass representing the Card 1 format in the SAMMY parameter file. This class is used to extract resonance information from the SAMMY parameter file.
- classmethod is_header_line(line: str) bool[source]
Check if line is a valid header line.
- NOTE: This is the one class that may not have a header line. If there is no header line,
this card should be the first card in the file.
- Parameters:
line – Input line to check
- Returns:
True if the first 5 characters of the line are ‘ISOTO’
- Return type:
- classmethod from_lines(lines: List[str], fit_config: FitConfig = None) None[source]
Parse a complete isotope parameter card set from lines.
- Parameters:
lines – List of input lines including header and blank terminator
FitConfig – FitConfig object to read isotopes into.
- Raises:
ValueError – If no valid header found or invalid format
- classmethod to_lines(fit_config: FitConfig) List[str][source]
Convert a fit_config object to Card 1 list of lines.
- Returns:
List of lines representing the Card 1 object.
- Return type:
List[str]
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].