Skip to content

Fix is_conforming equality check

Alexandru Fikl requested to merge fikl2/meshmode:numpy_bool_fix into master

This was an issue for me when the Mesh was constructed in no_adjacency.py::287, since apparently

>>> x = np.ones(3)
>>> type(True and x.all() or (~x).all())
<class 'numpy.bool_'>

and numpy.bool_(True) is not True, as in it's not the same object as True.

Merge request reports

Loading