damaris.data.DataPool

class damaris.data.DataPool[source]

dictionary with sending change events

# supports translation from dictionary keys to pytables hdf node names # taken from: Python Ref Manual Section 2.3: Identifiers and keywords # things are always prefixed by dir_ or dict_

__init__()[source]

Methods

__init__()

clear()

get(k[,d])

items()

keys()

load_hdf5(filename)

Load a complete DAMARIS HDF5 file and return DataPool and metadata, including scripts.

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem()

as a 2-tuple; but raise KeyError if D is empty.

read_from_hdf(hdffile[, where])

Read specified data from HDF5 file and populate the DataPool.

register_listener(listening_function)

setdefault(k[,d])

unregister_listener(listening_function)

update([E, ]**F)

If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values()

write_hdf5(hdffile[, where, name, complib, ...])

Writes the content of a DataPool object to an HDF5 file using the tables library.

Attributes

c

i

translation_table