<DIV><FONT face=Arial><EM>Hi,</EM></FONT></DIV>
<P><EM>Thank you so much for the replies!! I now have 15 subject's datasets in one file, but seem to still be missing something. </EM></P>
<P><EM>(I had used the </EM><I>h5save('/tmp/out.h5', [ds1, ds2]) to make the one file consist of the 15 subjects. And can be loaded correctly) </I></P>
<P><EM>Working through the hyperalignment tutorial, after loading using h5load, zscoring the individual datasets or inserting subject IDs to the individual datasets doesn't work with my combined dataset file (missing some attributes). It definitely works when using the example hyperalignment dataset file though.The code and error display are showed at the end.<BR></EM><FONT face=Arial><EM>Pardon me for the repeated questions on this. Would anyone please let me  know if there is something I am neglecting to do before saving all the datasets into the one file? Thank you very much!</EM></FONT></P>
<P>>>> _ = [zscore(ds) for ds in ds_all]<BR>Traceback (most recent call last):<BR>  File "<stdin>", line 1, in <module><BR>  File "/usr/lib/pymodules/python2.7/mvpa2/mappers/zscore.py", line 286, in zscore<BR>    zm.train(Dataset(ds))<BR>  File "/usr/lib/pymodules/python2.7/mvpa2/base/dataset.py", line 210, in __init__<BR>    samples = np.array(samples)<BR>ValueError: setting an array element with a sequence.<BR>>>> for i,sd in enumerate(ds_all):<BR>...     sd.sa['subject'] = np.repeat(i, len(sd))<BR>... <BR>Traceback (most recent call last):<BR>  File "<stdin>", line 2, in <module><BR>AttributeError: 'list' object has no attribute 'sa'<BR><BR></P><BR><br>