Skip to content

Commit

Permalink
Use integer division to avoid errors in indexing
Browse files Browse the repository at this point in the history
Fixes dipy#1215
  • Loading branch information
ghoshbishakh committed Apr 6, 2017
1 parent 21dfe25 commit b47298b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/examples/brain_extraction_dwi.py
Expand Up @@ -61,7 +61,7 @@
import matplotlib.pyplot as plt
from dipy.core.histeq import histeq

sli = data.shape[2] / 2
sli = data.shape[2] // 2
plt.figure('Brain segmentation')
plt.subplot(1, 2, 1).set_axis_off()
plt.imshow(histeq(data[:, :, sli].astype('float')).T,
Expand Down

0 comments on commit b47298b

Please sign in to comment.