code: def add_alignment(self,align):
      
      self._target_context_errors = None
      self._query_context_errors = None
      ae = AlignmentErrors(align)
      self._alignment_errors.append(ae)
      self._general_errors.add_alignment_errors(ae)
docs: Calculate alignment errors from the alignment and add it to the profile.