  #!/usr/bin/env python3
  """ Alignments file functions for reading, writing and manipulating
      a serialized alignments file """
  
  import logging
  import os
  from datetime import datetime
  
 
</s> remove     def load(self):
        """ Load the alignments data
            Override for custom loading logic """
 </s> add     def _load(self):
        """ Load the alignments data from the serialized alignments :attr:`file`.

        Returns
        -------
        dict:
            The loaded alignments data
        """ </s> remove         """ Write the serialized alignments file """
 </s> add         """ Write the contents of :attr:`data` to a serialized ``.fsa`` file at the location
        :attr:`file`. """ </s> remove         """ Backup copy of old alignments """
 </s> add         """ Create a backup copy of the alignments :attr:`file`.

        Creates a copy of the serialized alignments :attr:`file` appending a
        timestamp onto the end of the file name and storing in the same folder as
        the original :attr:`file`.
        """ </s> remove     def reload(self):
        """ Read the alignments data from the correct format """
        logger.debug("Re-loading alignments")
        self.data = self.load()
        logger.debug("Re-loaded alignments")

 </s> add  </s> remove     """ Holds processes pertaining to the alignments file.

        folder:     folder alignments file is stored in
        filename:   Filename of alignments file. If a
                    valid extension is provided, then it will be used to
                    decide the serializer otherwise compressed pickle is used.
 </s> add     """ The alignments file is a custom serialized ``.fsa`` file that holds information for each
    frame for a video or series of images.

    Specifically, it holds a list of faces that appear in each frame. Each face contains
    information detailing their detected bounding box location within the frame, the 68 point
    facial landmarks and any masks that have been extracted.

    Additionally it can also hold video meta information (timestamp and whether a frame is a
    key frame.)

    Parameters
    ----------
    folder: str
        The folder that contains the alignments ``.fsa`` file
    filename: str, optional
        The filename of the ``.fsa`` alignments file. If not provided then the given folder will be
        checked for a default alignments file filename. Default: "alignments"
""" Alignments file functions for reading, writing and manipulating the data stored in a
serialized alignments file. """
  #!/usr/bin/env python3
""" Alignments file functions for reading, writing and manipulating the data stored in a
serialized alignments file. """
""" Alignments file functions for reading, writing and manipulating the data stored in a
serialized alignments file. """
  
  import logging
  import os
  from datetime import datetime
  
keep replace replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
lib/alignments.py