schwarty/nibabel — comment on commit 2fbabc906ba416e1957bcb4c73899067e3fda086
File:  line 0
By matthew-brett:

Given this is a utility function I'd rather not constrain it to use filenames, but it would be good to allow filenames too.

Something like

img0 = images[0]
if not hasattr(img0, 'get_data'):
img0 = load(img0)

and so on.

Also, it would be good to have a test for this variation in the behavior - would you consider writing one?