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

Using the default bundle definition raises warnings #1075

Open
arokem opened this issue Dec 15, 2023 · 3 comments
Open

Using the default bundle definition raises warnings #1075

arokem opened this issue Dec 15, 2023 · 3 comments

Comments

@arokem
Copy link
Collaborator

arokem commented Dec 15, 2023

WARNING:AFQ:FP and Occipital bundles are co-located, and AFQ assigns each streamline to only one bundle. Only Occipital will be used.
WARNING:AFQ:FA and Orbital bundles are co-located, and AFQ assigns each streamline to only one bundle. Only Orbital will be used.
WARNING:AFQ:FP and Occipital bundles are co-located, and AFQ assigns each streamline to only one bundle. Only Occipital will be used.
WARNING:AFQ:FA and Orbital bundles are co-located, and AFQ assigns each streamline to only one bundle. Only Orbital will be used.
@arokem
Copy link
Collaborator Author

arokem commented Dec 15, 2023

And then crashes with:

Traceback (most recent call last):
  File "/Users/arokem/projects/project/afq.py", line 29, in <module>
    myafq.export_all()
  File "/Users/arokem/source/pyAFQ/AFQ/api/group.py", line 514, in export_all
    self.assemble_AFQ_browser()
  File "/Users/arokem/source/pyAFQ/AFQ/api/group.py", line 906, in assemble_AFQ_browser
    sls_json_fname = self.get_streamlines_json()
  File "/Users/arokem/source/pyAFQ/AFQ/api/group.py", line 360, in get_streamlines_json
    idx = seg_sft.bundle_idxs[b]

The full script I ran is:

from AFQ.api.group import GroupAFQ
from AFQ.definitions.image import ImageFile


brain_mask_definition = ImageFile(
    suffix="mask",
    filters={'desc': 'brain',
             'space': 'T1w',
             'scope': 'qsiprep'})

myafq = GroupAFQ(
    bids_path="/path/to/bids/dataset",
    preproc_pipeline='qsiprep',
    brain_mask_definition=brain_mask_definition,
    )

myafq.export_all()
# myafq.export("template_xform")

@arokem
Copy link
Collaborator Author

arokem commented Dec 15, 2023

I believe the error is AFQ-Browser related, which is why we haven't seen it much so far.

@36000
Copy link
Collaborator

36000 commented Dec 15, 2023

I wonder if a problem here is that the bundle was not found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants