#NEWLINE# def __add__( self , PB ) : #NEWLINE# #INDENT# if ( ( self . K != PB . K ) or ( SSsum . D != PB . D ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Dimension mismatch' ) #NEWLINE# #UNINDENT# SSsum = SuffStatBag ( K = self . K , D = self . D ) #NEWLINE# SSsum . _Fields = ( self . _Fields + PB . _Fields ) #NEWLINE# if hasattr ( self , '_ELBOTerms' ) : #NEWLINE# #INDENT# SSsum . _ELBOTerms = ( self . _ELBOTerms + PB . _ELBOTerms ) #NEWLINE# #UNINDENT# if hasattr ( self , '_MergeTerms' ) : #NEWLINE# #INDENT# SSsum . _MergeTerms = ( self . _MergeTerms + PB . _MergeTerms ) #NEWLINE# #UNINDENT# return SSsum