Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Put tg in rasmm first for SLR registration #566

Merged
merged 2 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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