Description:
The problem is that the qx, qy arrays are transposed.
For a square box this doesn't matter. Other modes work fine as well.
Code for reproduction:
sf_xy, qx, qy = sf2d(frame.coords(), frame.box, mode="fft")
sf_xy[abs(qx)<20]
Error message:
IndexError: boolean index did not match indexed array along axis 0; size of axis is 7449 but size of corre
Python and AMEP versions:
Python 3.13.2
amep 1.1.1
Additional information:
No response
How did you install AMEP?
from source