scripts/gray: fix read_eqdsk bug

The poloidal flux matrix is written in fortran order!
This commit is contained in:
Michele Guerini Rocco 2025-02-04 15:50:18 +01:00
parent eacfa2efe2
commit 9442356797
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -58,7 +58,7 @@ def read_eqdsk(filepath: Path) -> Eqdsk:
skip(file, nr * 4)
# read flux and safety factor
psi = read(file, nr * nz).reshape(nr, nz)
psi = read(file, nr * nz).reshape((nr, nz), order='F').T
q = read(file, nr)
# normalise flux