Re: [Chennaipy] Mutli- threading in cython

2018-05-21 Thread aishwarya selvaraj
Hi, Thank you for the suggestion. I was trying out an example code using PyArray_NewFromDescr*.* PFA of the code.I compiled the file using :python setup.py build_ext --inplace. When compiled I get the following error : fatal error : numpy/arrayobject.h :No such file or directory. I would be realy g

Re: [Chennaipy] Mutli- threading in cython

2018-05-21 Thread Aravindhan K
Hi, You could try using PyArray_NewFromDescr NumPy C-API function for creating nd-array in function capturing frames. than doing nested loops to do copy byte by byte. (This could be the bottleneck) https://docs.scipy.org/doc/numpy-1.14.0/reference/c-api.array.html#from-scratch Regards, Aravindha

[Chennaipy] Mutli- threading in cython

2018-05-21 Thread aishwarya selvaraj
Dear all, I was programming for Andor CCD using SDK libraries in python using cython. I have a piece of code within my .pyx script which does the function of storing the data into a 3D array. While acquiring n frames, each of them is stored in a 3D array named data, which later I would be displayin