-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello, I'm working on doing a two-level GLM nilearn tutorial for Pydra. But I've been having problems with a node in the workflow for more than two weeks (@djarecka, @htwangtw, and I have discussed it over past weeks). We've tried a couple ways to debug but haven't solved the problem yet. Here is a summary about what's happening:
In this two-level GLM tutorial, the analytical logic is:
- download data (a task function)
- run first level for each subject (a workflow)
- starting the second level estimation using results from the 2nd step (a task function)
- multiple statistical testings.... (other tasks...)
- step 3&4 together can be set up as a workflow, but let's talk about task function first for the sake of the current issue.
I write the whole workflow using nilearn and make sure the code itself is error-free. Each pydra task function can run successful as a standalone task. When I connect tasks into workflow, errors come up.
- The workflow works fine to get first level estimation
- The problem happens at
secondlevel_estimationsee here cell 18.
2.1 The input ofsecondlevel_estimationis a list of firstlevel model, the outputs are (a) secondlevel mask from SecondLevelModel() and (b) secondlevel stats estimations
2.2 If runsecondlevel_estimationas a task (outside of workflow), it printsresultsfine.
2.3 If runsecondlevel_estimationas a node in the workflow, it runs and can print out outcomes at every step, but it CANNOTreturnresults. Here (last line) is the error'NoneType' object has no attribute 'errored'
2.4 Sincesecondlevel_estimationcan't return results, it has problems linking to the next node, so we will get error asgraph is not empty, but not able to get more tasks - something is wrong (e.g. with the filesystem)see the last cell output here
Now the question is why this secondlevel_estimation node can't return results even if the output at each of its step can be print out.
Metadata
Metadata
Assignees
Labels
No labels