yt.fido.ParameterFileStore

class yt.fido.ParameterFileStore(in_memory=False)

This class is designed to be a semi-persistent storage for parameter files. By identifying each parameter file with a unique hash, objects can be stored independently of parameter files – when an object is loaded, the parameter file is as well, based on the hash. For storage concerns, only a few hundred will be retained in cache.

Methods

check_pf(pf) This will ensure that the parameter file (pf) handed to it is recorded in the storage unit.
flush_db() This flushes the storage to disk.
get_pf_ctid(ctid) This returns a parameter file based on a CurrentTimeIdentifier.
get_pf_hash(hash) This returns a parameter file based on a hash.
init_db() This function ensures that the storage database exists and can be used.
insert_pf(pf) This will insert a new pf and flush the database to disk.
read_db() This will read the storage device from disk.
wipe_hash(hash) This removes a hash corresponding to a parameter file from the

Next topic

yt.fido.ParameterFileStore.check_pf

This Page