rosali920 / neuropointillist

Flexible modeling of neuroimaging data in R
MIT License
3 stars 4 forks source link

error when saving only one output from model #7

Closed rosali920 closed 6 years ago

rosali920 commented 6 years ago

If only saving one output from the model, runme.local throws the below error:

Error in results[, 1] : incorrect number of dimensions
Calls: npointWriteOutputFiles
Execution halted
make: *** [model10001tstat-task.nii.gz] Error 1

This is thrown by npointWriteOutputFiles.R:

names <- attributes(results[,1])$names

When only one output, results does not have second dimension, hence the error. Adding a second output to the model seems to resolve this.

Throw an error:

retvals <- list(t.stat)

Works:

retvals <- list(t.stat,p)

rosali920 commented 6 years ago

duplicate from error reported in main repo