Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flatten q-point indices for compatibility with Numpy 2.0
With Numpy 2.0, np.unique returns a 2-D array when applied to q-points. This in turn gets broadcast and adds an extra dimension to the frequency/mode arrays, causing all kinds of chaos. Flattening the array here should be a no-op for Numpy <2 and fixes the issue.
- Loading branch information