To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.base.hdf5.h5save

mvpa2.base.hdf5.h5save(filename, data, name=None, mode='w', **kwargs)

Stores arbitray data in an HDF5 file.

This is a convenience wrapper around obj2hdf(). Please see its documentation for more details – especially the warnings!!

Parameters :

filename : str

Name of the file the data shall be stored in.

data : arbitrary

Instance of an object that shall be stored in the file.

name : str or None

Name of the object. In case of a complex object that cannot be stored natively without disassembling them, this is going to be a new group, otherwise the name of the dataset. If None, no new group is created.

mode : {‘r’, ‘r+’, ‘w’, ‘w-‘, ‘a’}

IO mode of the HDF5 file. See h5py.File documentation for more information.

**kwargs :

All additional arguments will be passed to h5py.Group.create_dataset. This could, for example, be compression='gzip'.

NeuroDebian

NITRC-listed