Skip to content

BUG: SF2D fft mode doesn't work for non square boxes. #137

@kai-luca

Description

@kai-luca

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions