schrodinger.application.desmond.picklejar module¶
Facilities for pickling objects that are otherwise uneasy to pickle, e.g., class attributes.
Copyright Schrodinger, LLC. All rights reserved.
-
class
schrodinger.application.desmond.picklejar.
CustomUnpickler
¶ Bases:
_pickle.Unpickler
-
find_class
(module, name)¶ Return an object from a specified module.
If necessary, the module will be imported. Subclasses may override this method (e.g. to restrict unpickling of arbitrary classes and functions).
This method is called whenever a class or a function object is needed. Both arguments passed are str objects.
-
__init__
¶ Initialize self. See help(type(self)) for accurate signature.
-
load
()¶ Load a pickle.
Read a pickled object representation from the open file object given in the constructor, and return the reconstituted object hierarchy specified therein.
-
memo
¶
-
persistent_load
¶
-
-
class
schrodinger.application.desmond.picklejar.
PickleJar
¶ Bases:
object
-
jar
= {<class 'schrodinger.application.desmond.picklejar.Picklable'>: {}}¶
-
static
serialize
(fh)¶
-
static
deserialize
(fh)¶
-
__init__
¶ Initialize self. See help(type(self)) for accurate signature.
-
-
class
schrodinger.application.desmond.picklejar.
PicklableMetaClass
(name, bases, dict)¶ Bases:
type
-
__init__
(name, bases, dict)¶ Initialize self. See help(type(self)) for accurate signature.
-
mro
() → list¶ return a type’s method resolution order
-