Class HDF5Writer

Inheritance Relationships

Base Type

Derived Type

Class Documentation

faccessors.HDF5Writer : public faccessors.FileWriter
A simple hdf5 backend.

Subclassed by faccessors.HDF5PackedWriter

Public Functions

__init__(self, str file_name)
__str__(self)
Return a string representation of the FileWriter interface
open(self)
Connect to the DB (or open file if file-based DB)
close(self)
Close DB
__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)
store(self, np.array inputs, np.array outputs)
Store the two arrays in a hdf5 file
get_file_format_suffix(cls)

Public Members

file_name
fd
datasets

Public Static Attributes

suffix = "h5"

Protected Functions

_store_dataset(self, dset_name, data)