eX-Mech / pymech

A Python software suite for Nek5000 and SIMSON
https://pymech.readthedocs.io/en/stable
GNU General Public License v3.0
24 stars 24 forks source link

Remove `pytest.mark.xfail` from vtk tests when Mayavi supports Numpy 2.0 #129

Open ashwinvis opened 4 hours ago

ashwinvis commented 4 hours ago

See:

ashwinvis commented 4 hours ago

Here is what happens with numpy 2.0

❯ python -c 'from tvtk.api import tvtk; tvtk.Hexahedron()'
Traceback (most recent call last):
  File "tvtk_classes/tvtk_helper.py", line 22, in get_module
ModuleNotFoundError: No module named 'tvtk.custom.hexahedron'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "tvtk_classes/tvtk_helper.py", line 1315, in <lambda>
  File "tvtk_classes/tvtk_helper.py", line 47, in get_class
  File "tvtk_classes/tvtk_helper.py", line 28, in get_module
  File "tvtk_classes/hexahedron.py", line 12, in <module>
  File "/home/ashwinmo/Sources/foss/pymech/.nox/tests-cov-vtk-3-10/lib/python3.10/site-packages/tvtk/array_handler.py", line 29, in <module>
    from tvtk.array_ext import set_id_type_array
  File "array_ext.pyx", line 1, in init array_ext
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject