SPC result
SPCResult inherits from CalculationResult, which provides the shared header fields (lattice, atom types, system info, …) plus to_dict()/to_json() serialization.
SPCResult
dataclass
Parsed result from an AkaiKKR SPC output file.
Attributes:
| Name | Type | Description |
|---|---|---|
spc_params |
SPCParams
|
SPC-specific parameters from the |
iteration |
GOIteration | None
|
The single SCF iteration recorded in the file, or |
spectral_up |
SpectralFunction | None
|
Spin-up Bloch spectral function, or |
spectral_down |
SpectralFunction | None
|
Spin-down Bloch spectral function, or |
to_dataframe() -> pd.DataFrame
Convert the Bloch spectral function(s) to one tidy long-form pandas DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame
|
A DataFrame with one row per (energy, k-point, spin) triple and |
DataFrame
|
columns for energy, k-point index, spin channel, and BSF |
DataFrame
|
intensity. Channels with no spectral data ( |
DataFrame
|
uncomputed k-path) are omitted. |
SPCParams
dataclass
SPC-specific computational parameters from the ***msg in spmain block.
SpectralFunction
dataclass
Bloch spectral function for one spin channel.
Attributes:
| Name | Type | Description |
|---|---|---|
spin |
str
|
Spin channel — |
kmesh |
KMeshInfo
|
k-mesh and energy-mesh metadata from the file header. |
data |
ndarray | None
|
BSF intensity matrix of shape |
KMeshInfo
dataclass
k-mesh and energy-mesh metadata from a spectral function data file header.