Hi,
I copied and pasted your "Building a Simple detector" example code, into a python file and ran it, then received this error message.
Traceback (most recent call last):
File "SimpDetect.py", line 113, in <module>
sim = Simulation(g, geant4_processes=0)
File "/home/chroma/Desktop/Henry/chroma/sim.py", line 49, in __init__
self.gpu_geometry = gpu.GPUGeometry(detector)
File "/home/chroma/Desktop/Henry/chroma/gpu/geometry.py", line 68, in __init__
np.float32(wavelengths[0])])
File "/home/chroma/Desktop/Henry/chroma/gpu/tools.py", line 160, in make_gpu_struct
cuda.memcpy_htod(int(struct)+i, np.intp(int(member)))
TypeError: 'numpy.int64' does not have the buffer interface
I have run this script before on the same computer and have not changed anything since the last time I used it. Does anybody know why I am receiving this error message, or how I can fix it?
Thanks