SpecResult

class ase2sprkkr.outputs.readers.spec.SpecResult(input_parameters, calculator, directory, output_file=None, input_file=None, task_name=None)[source]

Class representing the results of a spectral function calculation. Provides access to the parsed data from spec.out files.

Class hierarchy

Inheritance diagram of ase2sprkkr.outputs.readers.spec.SpecResult


Constructor

__init__(input_parameters, calculator, directory, output_file=None, input_file=None, task_name=None)
property potential_barrier: Dict[str, float][source]

Extract potential barrier parameters from the output.

property lattice_constants: Dict[str, float][source]

Extract lattice constants from the output.

property basis_vectors: Dict[str, numpy.ndarray][source]

Extract basis vectors from the output.

property spleed_intensity

Current two-column SPLEED diagram from the main text output, if any.

Do not cache: callers may inspect a result while SPEC.out is growing.

property spc_filenames

SPLEED’s header-only SPC is not a separate spectrum.

property spectral_data: numpy.ndarray

Convenience array from the unique spectrum or legacy text log.

_parse_potential_barrier()[source]

Parse the potential barrier section of the output.

Return type:

None

_parse_lattice_info()[source]

Parse lattice constants and basis vectors from the output.

Return type:

None

_get_file_content()[source]

Reuse captured SPEC text; fall back to disk for unparsed results.

Return type:

str