DumpCheckpointer
A subclass of CheckpointerBase that writes an entire dump to file at once & maintains
a backend cache to update it cleanly
__init__(self, file, cache=None, open_kwargs=None, allowed_keys=None, omitted_keys=None):
load_cache(self):
__enter__(self):
__exit__(self, exc_type, exc_val, exc_tb):
dump(self):
Writes the entire data structure
:returns:_
convert(self):
Converts the cache to an exportable form if needed
:returns:_
open_checkpoint_file(self, chk):
Opens the passed checkpoint_file (if not already open)
chk:Any:returns:_
close_checkpoint_file(self, stream):
Closes the opened checkpointing stream
stream:Any:returns:_
save_parameter(self, key, value):
Saves a parameter to the checkpoint file
key:Anyvalue:Any:returns:_
check_parameter(self, key):
Loads a parameter from the checkpoint file
key:Any:returns:_
load_parameter(self, key):
Loads a parameter from the checkpoint file
key:Any:returns:_
delete_parameter(self, key):
Loads a parameter from the checkpoint file
key:Any:returns:_
keys(self):