#NEWLINE# def Equals( self , x ) : #NEWLINE# #INDENT# if ( x is self ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# if ( self . has_image_ != x . has_image_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_image_ and ( self . image_ != x . image_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( len ( self . transform_ ) != len ( x . transform_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# for ( e1 , e2 ) in zip ( self . transform_ , x . transform_ ) : #NEWLINE# #INDENT# if ( e1 != e2 ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# #UNINDENT# if ( self . has_output_ != x . has_output_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_output_ and ( self . output_ != x . output_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_input_ != x . has_input_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_input_ and ( self . input_ != x . input_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# return 1