Skip to content

Commit 129516a

Browse files
committed
Fix weird casting bug
1 parent 2a4b314 commit 129516a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

amset/electronic_structure/tetrahedron.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ def get_tetrahedra_density_of_states(
548548
# transform the mask to the full BZ
549549
band_idx = np.repeat(band_idx, tetrahedra_weights)
550550
tetrahedra_grouped = self.grouped_ir_to_full[tetrahedra_idx]
551-
tetrahedra_idx = np.concatenate(tetrahedra_grouped)
551+
tetrahedra_idx = np.concatenate(
552+
tetrahedra_grouped, dtype=np.int_, casting="unsafe"
553+
)
552554
tetrahedra_mask = (band_idx, tetrahedra_idx)
553555

554556
# tetrahedra_mask = tetrahedra_mask[:, self.ir_tetrahedra_to_full_idx]

0 commit comments

Comments
 (0)