Skip to content

Commit

Permalink
Use same instead of img with load_tractogram to avoid bug where dipy …
Browse files Browse the repository at this point in the history
…only looks at srow to get affine
  • Loading branch information
36000 committed Aug 25, 2020
1 parent 595bee7 commit d942d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AFQ/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def _segment(self, row):
streamlines_file = self._streamlines(row)

img = nib.load(row['dwi_file'])
tg = load_tractogram(streamlines_file, img, Space.VOX)
tg = load_tractogram(streamlines_file, "same", Space.VOX)
if self.use_prealign:
reg_prealign = np.load(self._reg_prealign(row))
else:
Expand Down Expand Up @@ -902,7 +902,7 @@ def _clean_bundles(self, row):
bundles_file = self._segment(row)

sft = load_tractogram(bundles_file,
row['dwi_img'],
"same",
Space.VOX)

tgram = nib.streamlines.Tractogram([], {'bundle': []})
Expand Down

0 comments on commit d942d41

Please sign in to comment.