Commit efeb0e1a authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed issue with band segments not always containing start and end points,...

Fixed issue with band segments not always containing start and end points, updated to new Encyclopedia GUI with band gap search and viewer fixes.
parent 97e05dd1
Pipeline #135202 passed with stages
in 25 minutes and 1 second
Subproject commit d309b1251bd2cbf2faa1efb202b96c3774631c5d
Subproject commit 5a3b546784563098370a7014d4ee0e701087425f
......@@ -1463,6 +1463,8 @@ class EncCalculationResource(Resource):
k_path_distances = k_path_length + np.linalg.norm(k_points - k_points[0, :], axis=1)
k_path_length += segment_length
segment["k_path_distances"] = k_path_distances.tolist()
if "band_segm_start_end" not in segment:
segment["band_segm_start_end"] = [k_points[0].tolist(), k_points[-1].tolist()]
del segment["band_k_points"]
if "band_occupations" in segment:
del segment["band_occupations"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment