Skip to content

Commit 9b87dc8

Browse files
committed
Fix XZ hdf5 read
1 parent bb67498 commit 9b87dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stagpy/stagyyparsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def read_field_h5(xdmf_file, fieldname, snapshot, header=None):
813813
elif shp[-1] == 1: # XZ
814814
fld = fld.reshape((shp[0], shp[1], 1, shp[2]))
815815
if header['rcmb'] < 0:
816-
fld = fld[(0, 2, 1), ...]
816+
fld = fld[(1, 2, 0), ...]
817817
elif header['nts'][1] == 1: # cart XZ
818818
fld = fld.reshape((1, shp[0], 1, shp[1]))
819819
ifs = [icore // np.prod(header['ncs'][:i]) % header['ncs'][i] *

0 commit comments

Comments
 (0)