Skip to content

Commit

Permalink
move axis a few more times...
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsavel committed Mar 27, 2024
1 parent 488e06a commit 04c652a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cortecs/opac/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@ def write(self, opac, outfile, verbose=False):
wno = wno[::-1]
cross_section = opac.cross_section[:, ::-1]
cross_section = np.moveaxis(cross_section, 0, -1)
cross_section = np.moveaxis(cross_section, 0, -1)
cross_section = np.moveaxis(cross_section, 0, -1) # this
# want temperature index 0, pressure to 1, wavelength to 2 for standard usage.

hf = h5py.File(outfile, "w")
Expand Down

0 comments on commit 04c652a

Please sign in to comment.