Skip to content

Commit

Permalink
Merge pull request #566 from 36000/fix_slr
Browse files Browse the repository at this point in the history
[FIX] Put tg in rasmm first for SLR registration
  • Loading branch information
arokem committed Oct 29, 2020
2 parents b17c84f + f22c852 commit 9aead57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions AFQ/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ def _reg_img(self, img, mask, row=None):
img,
Space.VOX,
bbox_valid_check=False)
tg.to_rasmm()
return img, tg.streamlines
elif img_l == "hcp_atlas":
atlas_fname = op.join(
Expand Down
7 changes: 5 additions & 2 deletions AFQ/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def test_API_type_checking():
api.AFQ(bids_path, bundle_info=[2, 3])


@pytest.mark.skip(reason="may cause OOM")
@pytest.mark.nightly5
def test_AFQ_slr():
"""
Test if API can run using slr map
Expand All @@ -342,7 +342,10 @@ def test_AFQ_slr():
dmriprep='vistasoft',
reg_subject='subject_sls',
reg_template='hcp_atlas')
myafq.export_rois()

tgram = load_tractogram(myafq.get_clean_bundles()[0], myafq.dwi_img[0])
bundles = aus.tgram_to_bundles(tgram, myafq.bundle_dict, myafq.dwi_img[0])
npt.assert_(len(bundles['CST_L']) > 0)


@pytest.mark.nightly2
Expand Down

0 comments on commit 9aead57

Please sign in to comment.