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

NoneType error for no group_categories #825

Closed
yifan0330 opened this issue Aug 17, 2023 · 1 comment
Closed

NoneType error for no group_categories #825

yifan0330 opened this issue Aug 17, 2023 · 1 comment
Labels
bug Issues noting problems and PRs fixing those problems.

Comments

@yifan0330
Copy link
Contributor

yifan0330 commented Aug 17, 2023

Summary

When using nimare.meta.cbmr.CBMREstimator with group_categories=None, TypeError: 'NoneType' object is not iterable happens at a later stage if callingCBMRInference().fit(results)

Additional details

Traceback (most recent call last):
  File "/gpfs3/well/nichols/users/pra123/profiling/profile_cbmr.py", line 104, in <module>
    inference.fit(result=results)
  File "/well/nichols/users/pra123/anaconda3/lib/python3.11/site-packages/nimare/meta/cbmr.py", line 480, in fit
    self.create_regular_expressions()
  File "/well/nichols/users/pra123/anaconda3/lib/python3.11/site-packages/nimare/meta/cbmr.py", line 516, in create_regular_expressions
    first_group, second_group = [
                                ^
  File "/well/nichols/users/pra123/anaconda3/lib/python3.11/site-packages/nimare/meta/cbmr.py", line 517, in <listcomp>
    f"(?P<{order}>{'|'.join([re.escape(g) for g in groups])})"

TypeError: 'NoneType' object is not iterable
  • NiMARE version: 0.1.1
@yifan0330 yifan0330 added the bug Issues noting problems and PRs fixing those problems. label Aug 17, 2023
@yifan0330 yifan0330 changed the title "NoneType" error for no group_categories NoneType error for no group_categories Aug 17, 2023
@yifan0330
Copy link
Contributor Author

It's fixed after this change #821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues noting problems and PRs fixing those problems.
Projects
None yet
Development

No branches or pull requests

1 participant