expyfun.io.write_hdf5#
- expyfun.io.write_hdf5(fname, data, overwrite=False, compression=4)[source]#
Write python object to HDF5 format using h5io/h5py
- Parameters:
- fnamestr
Filename to use.
- dataobject
Object to write. Can be of any of these types:
{ndarray, dict, list, tuple, int, float, str}
Note that dict objects must only have
str
keys.- overwritebool
If True, overwrite file (if it exists).
- compressionint
Compression level to use (0-9) to compress data using gzip.
See also
Examples using expyfun.io.write_hdf5
#
Generate sample stimuli