Thank you.
Fixed it
# %% Define high-symmetry points
def mysym():
return {
"G": numpy.array((0.0, 0.0, 0.0)),
"M": numpy.array((0.0, 0.5, 0.0)),
"K": numpy.array((1.0/3.0, 1.0/3.0, 0.0)),
}
# %% Load optimized structure from correct file
optimized_configuration = nlread('WSe2_run3.hdf5', object_id='optgeom')[0]
# Assign custom symmetry points
optimized_configuration.bravaisLattice().symmetryPoints = mysym
# %% Compute band structure along Γ–M–K–Γ
bandstructure = Bandstructure(
configuration=optimized_configuration,
route=['G', 'M', 'K', 'G'],
points_per_segment=100
)
# %% Save results
nlsave('WSe2_run3.hdf5', bandstructure)