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