Skip to content

Commit

Permalink
Debugging with VTK=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Garyfallidis committed Nov 1, 2015
1 parent 3eb2b4f commit b590ca0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dipy/viz/tests/test_fvtk_actors.py
Expand Up @@ -28,8 +28,20 @@ def test_slicer():

# copy pixels in numpy array directly
arr = window.snapshot(renderer, 'test_slicer.png')
import scipy
print(scipy.__version__)
print(scipy.__file__)

print(arr.sum())
print(np.sum(arr == 0))
print(np.sum(arr > 0))
print(arr.shape)
print(arr.dtype)

report = window.analyze_snapshot(arr, find_objects=True)

print(report)

npt.assert_equal(report.objects, 1)
# print(arr[..., 0])

Expand Down

0 comments on commit b590ca0

Please sign in to comment.