This ports the examples to np.random.Generator to fix some deprecation warnings in numpy 2.0.
I also updated gl_particle_animation to not do from GL import * because it was giving a lot of pylint warnings. I couldn't run it though because it raised
AttributeError: type object 'pyopencl._cl.context_properties' has no attribute 'GL_CONTEXT_KHR'
Not quite sure what's missing on my system (I compiled with CL_ENABLE_GL and whatever else I could find).
This ports the examples to
np.random.Generator
to fix some deprecation warnings in numpy 2.0.I also updated
gl_particle_animation
to not dofrom GL import *
because it was giving a lot of pylint warnings. I couldn't run it though because it raisedNot quite sure what's missing on my system (I compiled with
CL_ENABLE_GL
and whatever else I could find).