Skip to content

Commit

Permalink
Merge 21e6e92 into 048b6fb
Browse files Browse the repository at this point in the history
  • Loading branch information
bcipolli committed Aug 31, 2015
2 parents 048b6fb + 21e6e92 commit 40e2ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipy/labs/viz_tools/maps_3d.py
Expand Up @@ -56,13 +56,13 @@ def affine_img_src(data, affine, scale=1, name='AffineImage',
# Try out old install of Mayavi, with namespace packages
from enthought.mayavi.sources.api import ArraySource
center = np.r_[0, 0, 0, 1]
spacing = np.diag(affine)[:3]
spacing = np.diag(affine)[:3].copy()
origin = np.dot(affine, center)[:3]
if reverse_x:
# Radiologic convention
spacing[0] *= -1
origin[0] *= -1
src = ArraySource(scalar_data=np.asarray(data, dtype=np.float),
src = ArraySource(scalar_data=np.asarray(data, dtype=np.float),
name=name,
spacing=scale*spacing,
origin=scale*origin)
Expand Down

0 comments on commit 40e2ce9

Please sign in to comment.