We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d0f80a commit c86185bCopy full SHA for c86185b
nibabel/streamlines/tractogram.py
@@ -545,7 +545,7 @@ def streamlines(self):
545
streamlines_gen = (t.streamline for t in self._data())
546
547
# Check if we need to apply an affine.
548
- if not np.all(self._affine_to_apply == np.eye(4)):
+ if not np.allclose(self._affine_to_apply, np.eye(4)):
549
def _apply_affine():
550
for s in streamlines_gen:
551
yield apply_affine(self._affine_to_apply, s)
0 commit comments