Skip to content

Commit 93266ae

Browse files
authored
Merge branch 'yt-project:main' into attempt_to_build_wheels
2 parents 0774e62 + 8233158 commit 93266ae

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: python -m pip install --upgrade pip
2525
- name: Setup yt_idv
2626
run: python -m pip install -e .[test]
27+
- name: List final env
28+
run: python -m pip list
2729
- name: Run Tests
2830
env:
2931
PYOPENGL_PLATFORM: osmesa

yt_idv/shader_objects.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
from collections import OrderedDict
1010
from typing import List, Optional, Tuple
1111

12+
import numpy as np
1213
import traitlets
1314
import yaml
1415
from OpenGL import GL
16+
from packaging.version import Version
1517
from yt.units.yt_array import YTQuantity
1618
from yt.utilities.exceptions import (
1719
YTInvalidShaderType,
@@ -151,7 +153,9 @@ def link(
151153
fragment_shader.delete_shader()
152154
if geometry_shader is not None:
153155
geometry_shader.delete_shader()
154-
self.introspect()
156+
if Version(np.__version__) < Version("2.3.0"):
157+
# see https://github.com/yt-project/yt_idv/pull/201
158+
self.introspect()
155159

156160
def introspect(self):
157161
if self.program is None:

0 commit comments

Comments
 (0)