Skip to Content
Back

Inspect the full BandResult

Streaming & Inspection

A BandResult is the canonical output: freqs (nk×nbandsn_k \times n_\text{bands}), distances (cumulative Euclidean along the path, used as the x-axis), k_points and k_labels for the path, plus the parameters that produced it. The expandable inspector on the right mirrors what you would see in a Jupyter notebook, so you can dig into any field without leaving the page.

Explorer
inspect-band-result/
inspect.py
1import blaze
2
3result = blaze.solve(
4    lattice_type="square",
5    epsilon_background=1.0,
6    epsilon_atoms=8.9,
7    radius_atom=0.2,
8    polarization="TM",
9    n_bands=8,
10)
11
12# Every attribute is inspectable:
13print(result.freqs)              # ndarray (n_k, n_bands)
14print(result.distances)          # ndarray (n_k,)
15print(result.k_points)           # ndarray (n_k, 2)
16print(result.k_labels)           # ['Γ', 'X', 'M', 'Γ']
17print(result.epsilon_atoms)      # 8.9

Band diagram

Run the example to see the band diagram.

Result · BandResult

Run the example to inspect the result object.