Skip to content

Commit

Permalink
RF: Try removing a call to squeeze out un-needed singleton dimensions.
Browse files Browse the repository at this point in the history
This will apparently not fix the bug.
  • Loading branch information
arokem committed Feb 12, 2016
1 parent 7d8181c commit a0eb5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dipy/tracking/streamline.py
Expand Up @@ -391,7 +391,7 @@ def _extract_vals(data, streamlines, affine=None, threedvec=False):
vals = np.array(vfu.interpolate_vector_3d(data, sl_cat)[0])
else:
vals = np.array(vfu.interpolate_scalar_3d(data, sl_cat)[0])
vals = np.reshape(vals, (sl_shape[0], sl_shape[1], -1)).squeeze()
vals = np.reshape(vals, (sl_shape[0], sl_shape[1], -1))

else:
raise RuntimeError("Extracting values from a volume ",
Expand Down

0 comments on commit a0eb5be

Please sign in to comment.