chemicalchecker.tool.targetmate.universes.univs.UniverseLoader

class UniverseLoader(file, *, fix_imports=True, encoding='ASCII', errors='strict')[source]

Bases: Unpickler

Methods

find_class

Return an object from a specified module.

load

Load a pickle.

Attributes

memo

persistent_load

find_class(module, name)[source]

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.

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.