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,6 +366,7 @@ class BlockStructure(object):
|
||||
def __eq__(self,other):
|
||||
def compare(one,two):
|
||||
if type(one)!=type(two):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user