def is_compatible(self, other):
super(Array2D, self).is_compatible(other)<EOL>if isinstance(other, type(self)):<EOL><INDENT>try:<EOL><INDENT>if not self.dy == other.dy:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>" % (type(self).__name__,<EOL>self.dy, other.dy))<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>return True<EOL>
Check whether this array and ``other`` have compatible metadata