Skip to content

Commit

Permalink
Update variable.py
Browse files Browse the repository at this point in the history
fixed np.bool to np.bool_ since np.bool is deprecated
  • Loading branch information
zm711 authored Feb 25, 2023
1 parent 8166fbe commit 0ab687a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions phy/plot/gloo/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
ivec2 gl.GL_INT_VEC2 2 gl.GL_INT np.int32
ivec3 gl.GL_INT_VEC3 3 gl.GL_INT np.int32
ivec4 gl.GL_INT_VEC4 4 gl.GL_INT np.int32
bool gl.GL_BOOL 1 gl.GL_BOOL np.bool
bvec2 gl.GL_BOOL_VEC2 2 gl.GL_BOOL np.bool
bvec3 gl.GL_BOOL_VEC3 3 gl.GL_BOOL np.bool
bvec4 gl.GL_BOOL_VEC4 4 gl.GL_BOOL np.bool
bool gl.GL_BOOL 1 gl.GL_BOOL np.bool_
bvec2 gl.GL_BOOL_VEC2 2 gl.GL_BOOL np.bool_
bvec3 gl.GL_BOOL_VEC3 3 gl.GL_BOOL np.bool_
bvec4 gl.GL_BOOL_VEC4 4 gl.GL_BOOL np.bool_
mat2 gl.GL_FLOAT_MAT2 4 gl.GL_FLOAT np.float32
mat3 gl.GL_FLOAT_MAT3 9 gl.GL_FLOAT np.float32
mat4 gl.GL_FLOAT_MAT4 16 gl.GL_FLOAT np.float32
Expand Down Expand Up @@ -83,10 +83,10 @@
gl.GL_INT_VEC2: (2, gl.GL_INT, np.int32),
gl.GL_INT_VEC3: (3, gl.GL_INT, np.int32),
gl.GL_INT_VEC4: (4, gl.GL_INT, np.int32),
gl.GL_BOOL: (1, gl.GL_BOOL, np.bool),
gl.GL_BOOL_VEC2: (2, gl.GL_BOOL, np.bool),
gl.GL_BOOL_VEC3: (3, gl.GL_BOOL, np.bool),
gl.GL_BOOL_VEC4: (4, gl.GL_BOOL, np.bool),
gl.GL_BOOL: (1, gl.GL_BOOL, np.bool_),
gl.GL_BOOL_VEC2: (2, gl.GL_BOOL, np.bool_),
gl.GL_BOOL_VEC3: (3, gl.GL_BOOL, np.bool_),
gl.GL_BOOL_VEC4: (4, gl.GL_BOOL, np.bool_),
gl.GL_FLOAT_MAT2: (4, gl.GL_FLOAT, np.float32),
gl.GL_FLOAT_MAT3: (9, gl.GL_FLOAT, np.float32),
gl.GL_FLOAT_MAT4: (16, gl.GL_FLOAT, np.float32),
Expand Down

0 comments on commit 0ab687a

Please sign in to comment.