class documentation

class Hdf5Context(HasTraits): (source)

View In Hierarchy

Provide a "context" (partial dictionary interface) into an HDF5 file. It allows multiple paths, specified by the path list, within the file to be treated as a single namespace. fixme: We probably also want this to support looking into structured arrays that are leaves in an HDF file and using their fields as part of the namespace. Example: <fixme>

Method __contains__ Undocumented
Method __delitem__ Delete an item from the context.
Method __getitem__
Method __iter__ Undocumented
Method __len__ Undocumented
Method __setitem__ Write an item from the context.
Method allows Undocumented
Method iteritems Return an iterator of the (key,value) pairs in the namespace
Method keys Return a list of the names available in the namespace.
Method location return the path where name is found. If it isn't in the context, return None.
Class Variable path Undocumented
def __contains__(self, name): (source)

Undocumented

def __delitem__(self, name): (source)

Delete an item from the context. For now we will not support this feature within an Hdf5 context. All deletes should be dealt occur into a copy-on-write context coupled with this one.

def __getitem__(self, name): (source)

def __iter__(self): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __setitem__(self, name, value): (source)

Write an item from the context. For now we will not support this feature within an Hdf5 context. All writes should be dealt occur into a copy-on-write context coupled with this one.

def allows(self, value, name=None): (source)

Undocumented

def iteritems(self): (source)

Return an iterator of the (key,value) pairs in the namespace

def keys(self): (source)

Return a list of the names available in the namespace.

def location(self, name): (source)

return the path where name is found. If it isn't in the context, return None. Currently used in testing to ensure that we are finding values fromt the expected location.

path = (source)

Undocumented