mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 11:53:41 +01:00
BlockStructure: fix bug with bool comparison
This commit is contained in:
parent
3dbc360173
commit
a8d86fd198
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user