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

[BUG] MultiNiftiMapsMasker reports are empty #4299

Closed
3 of 9 tasks
Remi-Gau opened this issue Feb 29, 2024 · 1 comment · Fixed by #4310
Closed
3 of 9 tasks

[BUG] MultiNiftiMapsMasker reports are empty #4299

Remi-Gau opened this issue Feb 29, 2024 · 1 comment · Fixed by #4310
Labels
Bug for bug reports Report

Comments

@Remi-Gau
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Operating system

  • Linux
  • Mac
  • Windows

Operating system version

For example one of the following:

  • Linux Ubuntu 22.04

Python version

  • 3.12
  • 3.11
  • 3.10
  • 3.9
  • 3.8

nilearn version

dev

Expected behavior

to have non empty reports

Current behavior & error messages

This is what I got:

image

image

Steps and code to reproduce bug

from pathlib import Path
from nilearn import datasets
from nilearn.maskers import (
    MultiNiftiMapsMasker
)

REPORTS_DIR = Path().cwd()

difumo = datasets.fetch_atlas_difumo(
    dimension=64, resolution_mm=2, legacy_format=False
)

data = datasets.fetch_development_fmri(n_subjects=2)

masker = MultiNiftiMapsMasker(
    maps_img=difumo.maps,
    standardize="zscore_sample",
    standardize_confounds="zscore_sample",
    memory="nilearn_cache",
    n_jobs=2,
)

masker.fit()
report = masker.generate_report()
report.save_as_html(REPORTS_DIR / "multi_nifti_maps_masker_atlas.html")

_ = masker.fit_transform(data.func, confounds=data.confounds)
report = masker.generate_report()
report.save_as_html(REPORTS_DIR / "multi_nifti_maps_masker_fitted.html")
@Remi-Gau Remi-Gau added Bug for bug reports Report labels Feb 29, 2024
@Remi-Gau Remi-Gau changed the title [BUG] MultiNiftiMapsMasker reports are emtpy [BUG] MultiNiftiMapsMasker reports are empty Feb 29, 2024
@bthirion
Copy link
Member

Oops, indeed.

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

Successfully merging a pull request may close this issue.

2 participants