chemprop.utils.v2_0_to_v2_1
===========================

.. py:module:: chemprop.utils.v2_0_to_v2_1


Classes
-------

.. autoapisummary::

   chemprop.utils.v2_0_to_v2_1.Unpickler


Functions
---------

.. autoapisummary::

   chemprop.utils.v2_0_to_v2_1.convert_model_file_v2_0_to_v2_1


Module Contents
---------------

.. py:class:: Unpickler

   Bases: :py:obj:`pickle.Unpickler`


   This takes a binary file for reading a pickle data stream.

   The protocol version of the pickle is detected automatically, so no
   protocol argument is needed.  Bytes past the pickled object's
   representation are ignored.

   The argument *file* must have two methods, a read() method that takes
   an integer argument, and a readline() method that requires no
   arguments.  Both methods should return bytes.  Thus *file* can be a
   binary file object opened for reading, an io.BytesIO object, or any
   other custom object that meets this interface.

   Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
   which are used to control compatibility support for pickle stream
   generated by Python 2.  If *fix_imports* is True, pickle will try to
   map the old Python 2 names to the new names used in Python 3.  The
   *encoding* and *errors* tell pickle how to decode 8-bit string
   instances pickled by Python 2; these default to 'ASCII' and 'strict',
   respectively.  The *encoding* can be 'bytes' to read these 8-bit
   string instances as bytes objects.


   .. py:attribute:: name_mappings


   .. py:method:: 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.



.. py:function:: convert_model_file_v2_0_to_v2_1(model_v1_file, model_v2_file)

