use_derivatives fix
BF + TEST: refactor fmri model inputs, add tests

FMRI model input checking is failing on python 3 because, in python 3,
strings have __iter__ attributes, and were therefore not being put into
a single element list as intended.

Some whitespace and docstring edits.
BF: change use of iteritems for python 3

Iteritems has gone in python 3 (items is an iterator already).
BF: add list around .values() for python 3

Python3 dict values method returns a generator, and can't be indexed;
make into an explicit list.
Merge pull request #235 from bpinsard/bug/groupwise_registration

use_derivatives fix

minor fix of use_derivatives, seems that the name given as parameters are not 'fmin_' prefixed (due to configure_optimizer specification), which could bring speed issue with powell or simplex optimizers.
wip
wip
Merge branch 'master' into slice_motion_correction

* master:
  use_derivatives fix
RF: move nipy_diagnose imports to canonical order
NF: save percentage variances and vectors from PCA

The basis vectors and percent variances for the components are useful
for working on later and take up little space.
Merge pull request #236 from matthew-brett/glm-input-tests

BF + TEST: refactor fmri model inputs, add tests

FMRI model input checking is failing on python 3 because, in python 3,
strings have iter attributes, and were therefore not being put into
a single element list as intended.

Some whitespace and docstring edits.
Merge pull request #240 from matthew-brett/extend-nipy-diagnose

Extend nipy diagnose

Some minor cleanup of nipy_diagnose script.

Added save of basis_vectors and pcnt_var from PCA to make it easier to go back over the analysis after it has been run.
ENH: added the opening to the API, and the mask computation now takes an int argument opening (instead of bool)
ENH: mask computation is now tested. Caveat: does not work with default opening=2
BF: added a test to see the effect of opening
BF+NF: fix path to save arrays; add tsdiff arrays

I wasn't using the output path for saving the `.npz` file, and thus
saving in the python current directory.

Added the tsdiffana time courses.
ENH: Added a test for multiple session mask
ENH: corrected docstrings in mask
ENH: variable renaming for consistency
BF: missing sys for sys.exit

I didn't test the script before committing, what a fool.