Skip to content

Several examples fail because of glm reporter wrong input #318

@thomasbazeille

Description

@thomasbazeille

The code is simple :

sd = fetch_spm_multimodal_fmri()
sd.output_dir = "/tmp/sub001"
sd.func = [sd.func1, sd.func2]

do_subject_preproc(sd.__dict__, concat=False, coregister=True, stc=True,
                   tsdiffana=True, realign=True, report=True, reslice=True)

But for some reason sd is of the wrong type :

Full Stack Trace:
Traceback (most recent call last):
  File "examples/pure_python/pure_python_preproc_demo.py", line 16, in <module>
    tsdiffana=True, realign=True, report=True, reslice=True)
  File "/home/parietal/tbazeill/pypreprocess/build/py3k/pypreprocess/purepython_preproc_utils.py", line 282, in do_subject_preproc
    n_sessions = len(subject_data.session_ids)
TypeError: object of type 'NoneType' has no len()

More generally, @kchawla-pi is working on cleaning the glm reporter code for nistats especially the types of input needed. Maybe we should wait until he's finished and build on that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions