Skip to content

Commit

Permalink
[BUG, MRG] Fix no more dimensions transposed (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill authored Jul 25, 2023
1 parent 88bff95 commit a9292d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mne_gui_addons/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ def _plot_images(self):
np.where(self._base_data < np.quantile(self._base_data, 0.95), 0, 1),
[1],
)[0]
# marching cubes transposes dimensions so flip
rr = apply_trans(self._vox_ras_t, rr[:, ::-1])
rr = apply_trans(self._vox_ras_t, rr)
self._renderer.mesh(
*rr.T,
triangles=tris,
Expand Down

0 comments on commit a9292d0

Please sign in to comment.