Skip to content

Commit

Permalink
Move axis around to get right ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Feb 22, 2019
1 parent 937b10f commit ebcf82a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions yt/geometry/oct_container.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,12 @@ cdef class OctreeContainer:
output_data = {}
for key, val in input_data.items():
val = val.T.reshape(-1)
output_data[key] = subset.apply_units(
np.where(icell_inds>=0, val[icell_inds], np.nan),
val.units)

output_data[key] = np.moveaxis(
subset.apply_units(
np.where(icell_inds>=0, val[icell_inds], np.nan),
val.units), 0, -1)

return output_data


Expand Down

0 comments on commit ebcf82a

Please sign in to comment.