Skip to content

Commit

Permalink
FIX: Dep
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Feb 14, 2024
1 parent 1cdda84 commit 7c5505e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-mayavi-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8']
qt-api: ['pyqt5']
vtk: ['vtk<9.3']
include:
- python-version: '3.12'
qt-api: 'pyqt6'
Expand Down
4 changes: 2 additions & 2 deletions mayavi/tools/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def figure(figure=None, bgcolor=None, fgcolor=None, engine=None,
engine.new_scene(name=name, size=size)
engine.current_scene.name = name
else:
if type(figure) in (int, np.int0, np.int8,
if type(figure) in (int, np.intp, np.int8,
np.int16, np.int32, np.int64):
name = int(figure)
__scene_number_list.update((name,))
Expand Down Expand Up @@ -165,7 +165,7 @@ def close(scene=None, all=False):
if scene is None:
scene = engine.current_scene
else:
if type(scene) in (int, np.int0, np.int8,
if type(scene) in (int, np.intp, np.int8,
np.int16, np.int32, np.int64):
scene = int(scene)
name = 'Mayavi Scene %d' % scene
Expand Down

0 comments on commit 7c5505e

Please sign in to comment.