BlockStructure: fix bug with bool comparison

This commit is contained in:
Gernot J. Kraberger 2018-02-27 18:59:01 +01:00
parent 3dbc360173
commit a8d86fd198
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ class BlockStructure(object):
def __eq__(self,other):
def compare(one,two):
if type(one)!=type(two):
return False
if not (isinstance(one, (bool, np.bool_)) and isinstance(two, (bool, np.bool_))):
return False
if one is None and two is None:
return True
if isinstance(one,list) or isinstance(one,tuple):