You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it turns out that we get failures to generate reports with several atlases.
fetch_atlas_destrieux_2009
fetch_atlas_aal
fetch_atlas_basc_multiscale_2015
fetch_atlas_yeo_2011
File "/home/remi/github/nilearn/nilearn/../tmp.py", line 80, in main
report = masker.generate_report()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/remi/github/nilearn/nilearn/nilearn/maskers/nifti_labels_masker.py", line 350, in generate_report
return generate_report(self)
^^^^^^^^^^^^^^^^^^^^^
File "/home/remi/github/nilearn/nilearn/nilearn/reporting/html_report.py", line 236, in generate_report
return _create_report(estimator, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/remi/github/nilearn/nilearn/nilearn/reporting/html_report.py", line 241, in _create_report
overlay, image = _define_overlay(estimator)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/remi/github/nilearn/nilearn/nilearn/reporting/html_report.py", line 164, in _define_overlay
displays = estimator._reporting()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/remi/github/nilearn/nilearn/nilearn/maskers/nifti_labels_masker.py", line 387, in _reporting
self._check_mismatch_labels_regions(label_values, tolerant=False)
File "/home/remi/github/nilearn/nilearn/nilearn/maskers/nifti_labels_masker.py", line 333, in _check_mismatch_labels_regions
raise ValueError(msg)
ValueError: Mismatch between the number of provided labels (151) and the number of regions in provided label image (149).
Remi-Gau
changed the title
Actually was also checking what the reports would look with these "misnamed" regions and it turns out that we get failures to generate reports with several atlases.
failures to generate reports with several atlases
Mar 20, 2024
it turns out that we get failures to generate reports with several atlases.
Originally posted by @Remi-Gau in #4289 (comment)
The text was updated successfully, but these errors were encountered: