From aishwaryaselvaraj1708 at gmail.com Fri Jun 1 07:02:31 2018 From: aishwaryaselvaraj1708 at gmail.com (aishwarya selvaraj) Date: Fri, 1 Jun 2018 16:32:31 +0530 Subject: [Chennaipy] Mutli- threading in cython In-Reply-To: References: Message-ID: Hi, I tried the changes. No was not able to solve my issue. I'm attaching the file. Kindly take a look at it. ? On Mon, May 28, 2018 at 10:21 PM, Aravindhan K wrote: > Hi, > > See the comments starts with NOTE in the attached file. > Hope that may guide you find the issue. > > Regards, > Araindhan K > > On Mon, May 28, 2018 at 11:35 AM, aishwarya selvaraj < > aishwaryaselvaraj1708 at gmail.com> wrote: > >> Hi, >> Yes, I was able to make use of PyArray_NewFromDescr in my code. Storing >> into a 3D array has now become a lot faster. Thank you!But the CCD >> images stored using this method looks quite different from the ones >> acquired earlier. >> In the older method at the end of for loop, there is incrementing using _puc_image >> += aoiStride, I'm not very sure on how to do it with new method. Could >> you please take a look at it? >> ? >> >> On Mon, May 28, 2018 at 11:17 AM, aishwarya selvaraj < >> aishwaryaselvaraj1708 at gmail.com> wrote: >> >>> Hi, >>> Yes, I was able to make use of PyArray_NewFromDescr in my code. >>> Storing into a 3D array has now become a lot faster. Thank you!But the >>> CCD images stored using this method looks quite different from the ones >>> acquired earlier. >>> In the older method at the end of for loop there is incrementing using _puc_image >>> += aoiStride, I'm not very sure on how to do it with new method. Could >>> you please take a look at it? I'm not very sure what am I missing here. >>> ? >>> >>>> >>>>> dims[0] = self.aoiWidth >>>> >>>> dims[1] = self.aoiHeight >>>> >>>> #method 1 >>>> >>>> data[i,:,:] = PyArray_NewFromDescr( np.ndarray, >>>>> np.dtype('>>> >>>> #----------------------------------------------------------- >>>>> ------------------------------------------------ >>>> >>>> #method 2: >>>> >>>> #if (i==0) or (i == 1) or (i ==2) or (i==3) or (i==4): >>>> >>>> #_puc_image = pBuf >>>> >>>> #pus_image = pBuf >>>> >>>> #for j in range(self.aoiWidth/self.hbin): >>>> >>>> #pus_image = (_puc_image) >>>> >>>> #for k in range(self.aoiHeight/self.vbin): >>>> >>>> #data[l][j][k] = pus_image[0] >>>> >>>> #pus_image += 1 >>>> >>>> #_puc_image += aoiStride >>>> >>>> #l = l+1 >>>> >>>> the image displayed using method 1 is very different from method 1. >>> >>> ? >>> >>> On Thu, May 24, 2018 at 9:34 AM, aishwarya selvaraj < >>> aishwaryaselvaraj1708 at gmail.com> wrote: >>> >>>> Hi, Yes I was able to make use of PyArray_NewFromDescr in my code. >>>> Storing into a 3D array has now become a lot faster.Thank you! >>>> But the CCD images stored using this method looks quite different from >>>> the ones acquired earlier. I'm yet to find the root of the problem for the >>>> same. Could you please take a look at it? I'm not very sure what am I >>>> missing here. >>>> ? >>>> >>>> On Wed, May 23, 2018 at 7:43 AM, Aravindhan K < >>>> aravindhank1994 at gmail.com> wrote: >>>> >>>>> Hi, >>>>> Please use this example code. https://pastebin.com/nh9rvqfm. >>>>> I have used this link as a reference. >>>>> https://groups.google.com/forum/#!topic/cython-users/fFBiCCwblD0 >>>>> >>>>> >>>>> Regards, >>>>> Aravindhan K >>>>> >>>>> On Tue, May 22, 2018 at 11:58 AM, aishwarya selvaraj < >>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>> >>>>>> 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 gratefull if you could do the edit in the file I >>>>>> sent in my first mail. >>>>>> >>>>>> ? >>>>>> >>>>>> On Mon, May 21, 2018 at 9:19 PM, Aravindhan K < >>>>>> aravindhank1994 at gmail.com> wrote: >>>>>> >>>>>>> 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.arra >>>>>>> y.html#from-scratch >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Aravindhan K >>>>>>> >>>>>>> On Mon, May 21, 2018 at 5:12 PM, aishwarya selvaraj < >>>>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>>>> >>>>>>>> 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 >>>>>>>> displaying. But this creates a bottleneck in my code. >>>>>>>> Hence I need to introduce threading, such that for each frame to be >>>>>>>> stored there are individual threads for the same and the frames could be >>>>>>>> displayed simultaneously without creating a performance lag. >>>>>>>> Since I have never worked on multithreading, could anyone please >>>>>>>> help me. >>>>>>>> PFA of the code. (LiveAcquisition code) >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Regards, >>>>>>>> Aishwarya Selvaraj >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Chennaipy mailing list >>>>>>>> Chennaipy at python.org >>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Chennaipy mailing list >>>>>>> Chennaipy at python.org >>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Aishwarya Selvaraj >>>>>> >>>>>> _______________________________________________ >>>>>> Chennaipy mailing list >>>>>> Chennaipy at python.org >>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Chennaipy mailing list >>>>> Chennaipy at python.org >>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Aishwarya Selvaraj >>>> >>> >>> >>> >>> -- >>> Regards, >>> Aishwarya Selvaraj >>> >> >> >> >> -- >> Regards, >> Aishwarya Selvaraj >> >> _______________________________________________ >> Chennaipy mailing list >> Chennaipy at python.org >> https://mail.python.org/mailman/listinfo/chennaipy >> >> > > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy > > -- Regards, Aishwarya Selvaraj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: atcore_py .pyx Type: application/octet-stream Size: 3185 bytes Desc: not available URL: From aravindhank1994 at gmail.com Sat Jun 2 03:31:58 2018 From: aravindhank1994 at gmail.com (Aravindhan K) Date: Sat, 2 Jun 2018 13:01:58 +0530 Subject: [Chennaipy] Mutli- threading in cython In-Reply-To: References: Message-ID: Hi, Use the version of code that is mentioned in your NOTE 4. But why are you keeping np.dtype('<'B) instead of np.dtype('<'H') ? in data[i,:,:] = PyArray_NewFromDescr( np.ndarray, np.dtype(' wrote: > Hi, > I tried the changes. No was not able to solve my issue. I'm attaching the > file. Kindly take a look at it. > > ? > > On Mon, May 28, 2018 at 10:21 PM, Aravindhan K > wrote: > >> Hi, >> >> See the comments starts with NOTE in the attached file. >> Hope that may guide you find the issue. >> >> Regards, >> Araindhan K >> >> On Mon, May 28, 2018 at 11:35 AM, aishwarya selvaraj < >> aishwaryaselvaraj1708 at gmail.com> wrote: >> >>> Hi, >>> Yes, I was able to make use of PyArray_NewFromDescr in my code. >>> Storing into a 3D array has now become a lot faster. Thank you!But the >>> CCD images stored using this method looks quite different from the ones >>> acquired earlier. >>> In the older method at the end of for loop, there is incrementing using >>> _puc_image += aoiStride, I'm not very sure on how to do it with new >>> method. Could you please take a look at it? >>> ? >>> >>> On Mon, May 28, 2018 at 11:17 AM, aishwarya selvaraj < >>> aishwaryaselvaraj1708 at gmail.com> wrote: >>> >>>> Hi, >>>> Yes, I was able to make use of PyArray_NewFromDescr in my code. >>>> Storing into a 3D array has now become a lot faster. Thank you!But the >>>> CCD images stored using this method looks quite different from the ones >>>> acquired earlier. >>>> In the older method at the end of for loop there is incrementing using _puc_image >>>> += aoiStride, I'm not very sure on how to do it with new method. Could >>>> you please take a look at it? I'm not very sure what am I missing here. >>>> ? >>>> >>>>> >>>>>> dims[0] = self.aoiWidth >>>>> >>>>> dims[1] = self.aoiHeight >>>>> >>>>> #method 1 >>>>> >>>>> data[i,:,:] = PyArray_NewFromDescr( np.ndarray, >>>>>> np.dtype('>>>> >>>>> #----------------------------------------------------------- >>>>>> ------------------------------------------------ >>>>> >>>>> #method 2: >>>>> >>>>> #if (i==0) or (i == 1) or (i ==2) or (i==3) or (i==4): >>>>> >>>>> #_puc_image = pBuf >>>>> >>>>> #pus_image = pBuf >>>>> >>>>> #for j in range(self.aoiWidth/self.hbin): >>>>> >>>>> #pus_image = (_puc_image) >>>>> >>>>> #for k in range(self.aoiHeight/self.vbin): >>>>> >>>>> #data[l][j][k] = pus_image[0] >>>>> >>>>> #pus_image += 1 >>>>> >>>>> #_puc_image += aoiStride >>>>> >>>>> #l = l+1 >>>>> >>>>> the image displayed using method 1 is very different from method 1. >>>> >>>> ? >>>> >>>> On Thu, May 24, 2018 at 9:34 AM, aishwarya selvaraj < >>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>> >>>>> Hi, Yes I was able to make use of PyArray_NewFromDescr in my code. >>>>> Storing into a 3D array has now become a lot faster.Thank you! >>>>> But the CCD images stored using this method looks quite different from >>>>> the ones acquired earlier. I'm yet to find the root of the problem for the >>>>> same. Could you please take a look at it? I'm not very sure what am I >>>>> missing here. >>>>> ? >>>>> >>>>> On Wed, May 23, 2018 at 7:43 AM, Aravindhan K < >>>>> aravindhank1994 at gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> Please use this example code. https://pastebin.com/nh9rvqfm. >>>>>> I have used this link as a reference. >>>>>> https://groups.google.com/forum/#!topic/cython-users/fFBiCCwblD0 >>>>>> >>>>>> >>>>>> Regards, >>>>>> Aravindhan K >>>>>> >>>>>> On Tue, May 22, 2018 at 11:58 AM, aishwarya selvaraj < >>>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>>> >>>>>>> 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 gratefull if you could do the edit in the file I >>>>>>> sent in my first mail. >>>>>>> >>>>>>> ? >>>>>>> >>>>>>> On Mon, May 21, 2018 at 9:19 PM, Aravindhan K < >>>>>>> aravindhank1994 at gmail.com> wrote: >>>>>>> >>>>>>>> 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.arra >>>>>>>> y.html#from-scratch >>>>>>>> >>>>>>>> >>>>>>>> Regards, >>>>>>>> Aravindhan K >>>>>>>> >>>>>>>> On Mon, May 21, 2018 at 5:12 PM, aishwarya selvaraj < >>>>>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>>>>> >>>>>>>>> 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 >>>>>>>>> displaying. But this creates a bottleneck in my code. >>>>>>>>> Hence I need to introduce threading, such that for each frame to >>>>>>>>> be stored there are individual threads for the same and the frames could be >>>>>>>>> displayed simultaneously without creating a performance lag. >>>>>>>>> Since I have never worked on multithreading, could anyone please >>>>>>>>> help me. >>>>>>>>> PFA of the code. (LiveAcquisition code) >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Regards, >>>>>>>>> Aishwarya Selvaraj >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Chennaipy mailing list >>>>>>>>> Chennaipy at python.org >>>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Chennaipy mailing list >>>>>>>> Chennaipy at python.org >>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Regards, >>>>>>> Aishwarya Selvaraj >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Chennaipy mailing list >>>>>>> Chennaipy at python.org >>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Chennaipy mailing list >>>>>> Chennaipy at python.org >>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Regards, >>>>> Aishwarya Selvaraj >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Aishwarya Selvaraj >>>> >>> >>> >>> >>> -- >>> Regards, >>> Aishwarya Selvaraj >>> >>> _______________________________________________ >>> Chennaipy mailing list >>> Chennaipy at python.org >>> https://mail.python.org/mailman/listinfo/chennaipy >>> >>> >> >> _______________________________________________ >> Chennaipy mailing list >> Chennaipy at python.org >> https://mail.python.org/mailman/listinfo/chennaipy >> >> > > > -- > Regards, > Aishwarya Selvaraj > > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aishwaryaselvaraj1708 at gmail.com Sun Jun 3 10:01:43 2018 From: aishwaryaselvaraj1708 at gmail.com (aishwarya selvaraj) Date: Sun, 3 Jun 2018 19:31:43 +0530 Subject: [Chennaipy] Mutli- threading in cython In-Reply-To: References: Message-ID: Hi, With npstrides[1] = 2, it worked perfectly. Thank you. ? On Sat, Jun 2, 2018 at 1:01 PM, Aravindhan K wrote: > Hi, > > Use the version of code that is mentioned in your NOTE 4. > > But why are you keeping np.dtype('<'B) instead of np.dtype('<'H') ? in > > data[i,:,:] = PyArray_NewFromDescr( np.ndarray, > np.dtype(' > and change this too. > npstrides[1] = 2 #short is two bytes long. > > > Regards, > Aravindhan K > > On Fri, Jun 1, 2018 at 4:32 PM, aishwarya selvaraj < > aishwaryaselvaraj1708 at gmail.com> wrote: > >> Hi, >> I tried the changes. No was not able to solve my issue. I'm attaching the >> file. Kindly take a look at it. >> >> ? >> >> On Mon, May 28, 2018 at 10:21 PM, Aravindhan K > > wrote: >> >>> Hi, >>> >>> See the comments starts with NOTE in the attached file. >>> Hope that may guide you find the issue. >>> >>> Regards, >>> Araindhan K >>> >>> On Mon, May 28, 2018 at 11:35 AM, aishwarya selvaraj < >>> aishwaryaselvaraj1708 at gmail.com> wrote: >>> >>>> Hi, >>>> Yes, I was able to make use of PyArray_NewFromDescr in my code. >>>> Storing into a 3D array has now become a lot faster. Thank you!But the >>>> CCD images stored using this method looks quite different from the ones >>>> acquired earlier. >>>> In the older method at the end of for loop, there is incrementing using >>>> _puc_image += aoiStride, I'm not very sure on how to do it with new >>>> method. Could you please take a look at it? >>>> ? >>>> >>>> On Mon, May 28, 2018 at 11:17 AM, aishwarya selvaraj < >>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>> >>>>> Hi, >>>>> Yes, I was able to make use of PyArray_NewFromDescr in my code. >>>>> Storing into a 3D array has now become a lot faster. Thank you!But >>>>> the CCD images stored using this method looks quite different from the ones >>>>> acquired earlier. >>>>> In the older method at the end of for loop there is incrementing >>>>> using _puc_image += aoiStride, I'm not very sure on how to do >>>>> it with new method. Could you please take a look at it? I'm not very >>>>> sure what am I missing here. >>>>> ? >>>>> >>>>>> >>>>>>> dims[0] = self.aoiWidth >>>>>> >>>>>> dims[1] = self.aoiHeight >>>>>> >>>>>> #method 1 >>>>>> >>>>>> data[i,:,:] = PyArray_NewFromDescr( np.ndarray, >>>>>>> np.dtype('>>>>> >>>>>> #----------------------------------------------------------- >>>>>>> ------------------------------------------------ >>>>>> >>>>>> #method 2: >>>>>> >>>>>> #if (i==0) or (i == 1) or (i ==2) or (i==3) or (i==4): >>>>>> >>>>>> #_puc_image = pBuf >>>>>> >>>>>> #pus_image = pBuf >>>>>> >>>>>> #for j in range(self.aoiWidth/self.hbin): >>>>>> >>>>>> #pus_image = (_puc_image) >>>>>> >>>>>> #for k in range(self.aoiHeight/self.vbin): >>>>>> >>>>>> #data[l][j][k] = pus_image[0] >>>>>> >>>>>> #pus_image += 1 >>>>>> >>>>>> #_puc_image += aoiStride >>>>>> >>>>>> #l = l+1 >>>>>> >>>>>> the image displayed using method 1 is very different from method 1. >>>>> >>>>> ? >>>>> >>>>> On Thu, May 24, 2018 at 9:34 AM, aishwarya selvaraj < >>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>> >>>>>> Hi, Yes I was able to make use of PyArray_NewFromDescr in my code. >>>>>> Storing into a 3D array has now become a lot faster.Thank you! >>>>>> But the CCD images stored using this method looks quite different >>>>>> from the ones acquired earlier. I'm yet to find the root of the problem for >>>>>> the same. Could you please take a look at it? I'm not very sure what >>>>>> am I missing here. >>>>>> ? >>>>>> >>>>>> On Wed, May 23, 2018 at 7:43 AM, Aravindhan K < >>>>>> aravindhank1994 at gmail.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> Please use this example code. https://pastebin.com/nh9rvqfm. >>>>>>> I have used this link as a reference. >>>>>>> https://groups.google.com/forum/#!topic/cython-users/fFBiCCwblD0 >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Aravindhan K >>>>>>> >>>>>>> On Tue, May 22, 2018 at 11:58 AM, aishwarya selvaraj < >>>>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>>>> >>>>>>>> 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 gratefull if you could do the edit in the file I >>>>>>>> sent in my first mail. >>>>>>>> >>>>>>>> ? >>>>>>>> >>>>>>>> On Mon, May 21, 2018 at 9:19 PM, Aravindhan K < >>>>>>>> aravindhank1994 at gmail.com> wrote: >>>>>>>> >>>>>>>>> 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.arra >>>>>>>>> y.html#from-scratch >>>>>>>>> >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Aravindhan K >>>>>>>>> >>>>>>>>> On Mon, May 21, 2018 at 5:12 PM, aishwarya selvaraj < >>>>>>>>> aishwaryaselvaraj1708 at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> 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 >>>>>>>>>> displaying. But this creates a bottleneck in my code. >>>>>>>>>> Hence I need to introduce threading, such that for each frame to >>>>>>>>>> be stored there are individual threads for the same and the frames could be >>>>>>>>>> displayed simultaneously without creating a performance lag. >>>>>>>>>> Since I have never worked on multithreading, could anyone please >>>>>>>>>> help me. >>>>>>>>>> PFA of the code. (LiveAcquisition code) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Regards, >>>>>>>>>> Aishwarya Selvaraj >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Chennaipy mailing list >>>>>>>>>> Chennaipy at python.org >>>>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Chennaipy mailing list >>>>>>>>> Chennaipy at python.org >>>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Regards, >>>>>>>> Aishwarya Selvaraj >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Chennaipy mailing list >>>>>>>> Chennaipy at python.org >>>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Chennaipy mailing list >>>>>>> Chennaipy at python.org >>>>>>> https://mail.python.org/mailman/listinfo/chennaipy >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Aishwarya Selvaraj >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Regards, >>>>> Aishwarya Selvaraj >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Aishwarya Selvaraj >>>> >>>> _______________________________________________ >>>> Chennaipy mailing list >>>> Chennaipy at python.org >>>> https://mail.python.org/mailman/listinfo/chennaipy >>>> >>>> >>> >>> _______________________________________________ >>> Chennaipy mailing list >>> Chennaipy at python.org >>> https://mail.python.org/mailman/listinfo/chennaipy >>> >>> >> >> >> -- >> Regards, >> Aishwarya Selvaraj >> >> _______________________________________________ >> Chennaipy mailing list >> Chennaipy at python.org >> https://mail.python.org/mailman/listinfo/chennaipy >> >> > > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy > > -- Regards, Aishwarya Selvaraj -------------- next part -------------- An HTML attachment was scrubbed... URL: From aishwaryaselvaraj1708 at gmail.com Tue Jun 5 09:52:43 2018 From: aishwaryaselvaraj1708 at gmail.com (aishwarya selvaraj) Date: Tue, 5 Jun 2018 19:22:43 +0530 Subject: [Chennaipy] How to update the graph without redrawing using matplotlib Message-ID: Dear all, I have 2 files created, one a .pyx file with a class named AndorCamersSDK which has a function named LiveAcquisition(). The second file, a .py file with a Class AndorCameraGUI which makes use of Tkinter to create a GUI. This class has function LivePlot(), and RepeatPlot().Inside LiveAcquisition() I am acquiring N number of frames and after acquiring each frame I need to display it using LivePlot() and RepeatPlot(). Without the display, just acquiring and storing for 300 frames takes 6.2 for execution, which is fine by me. When I try the below method, it takes around 54 sec even for 100 frames. I need to acquire and display within 6 sec for 300 frames. How do I solve this? -- Regards, Aishwarya Selvaraj ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- File 1: .pyx code ; Present inside class AndorCameraSDK def LiveAcquisition(self): for i in range(no_of_frames): data[i,:,:] = PyArray_NewFromDescr( np.ndarray, np.dtype(' References: Message-ID: ---------- Forwarded message ---------- From: Shrinivasan T Date: 2018-06-06 10:24 GMT+05:30 Subject: Call for speakers - June meet - June 9 2018 To: ilugc at freelists.org Hello all, Indian Linux Users Group, Chennai [ ILUGC ] is spreading awareness on Free/Open Source Software (F/OSS) in Chennai since January 1998. We usually meet on the second Saturday of every month, and for the month of May we shall meet on Saturday, June 9, 2018 at 1600 IST. Venue: Classroom No 1, Aerospace Engineering, Near Gajendra Circle, IIT Madras. Link for the Map: http://bit.ly/iitm-aero We are inviting speakers to give a talk on things they have been working on or fiddling with lately related to Linux, software, languages, OS etc . People from all levels are invited to present at the meetup, we have had the opportunity to witness talks from school kids to senior professors and from freshers to experienced software developers at ILUGC meetups. Please provide the following details if you are interested: Topic Description Duration About Yourself Entry is free. -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com From aishwaryaselvaraj1708 at gmail.com Thu Jun 7 08:17:53 2018 From: aishwaryaselvaraj1708 at gmail.com (aishwarya selvaraj) Date: Thu, 7 Jun 2018 17:47:53 +0530 Subject: [Chennaipy] How to increase the speed of plotting in GUI(using Tkinter) using FigureCanvasTkAGG? Message-ID: Dear all, I have 2 files created, one a .pyx file with a class named AndorCamersSDK which has a function named LiveAcquisition(). The second file, a .py file with a Class AndorCameraGUI which makes use of Tkinter to create a GUI. This class has function LivePlot(), and RepeatPlot().Inside LiveAcquisition() I am acquiring N number of frames and after acquiring each frame I need to display it using LivePlot() and RepeatPlot(). Without the display, just acquiring and storing for 300 frames takes 6.2 for execution, which is fine by me. But When I start displaying it exceeds this time limit. eg, it takes around 9 seconds for acquiring and displaying 300 images of size 512 x 512. I need to acquire and display within 6 sec for 300 frames. How do I solve this? -- Regards, Aishwarya Selvaraj ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- File 1: .pyx code ; Present inside class AndorCameraSDK def LiveAcquisition(self): for i in range(no_of_frames): data[i,:,:] = PyArray_NewFromDescr( np.ndarray, np.dtype(' Hi Everyone, The next meetup is on the 23rd of this month. If you are interested in doing a talk (20 min), please send in your talk title and talk description. Regards, Vijay From vijaykumar at bravegnu.org Sun Jun 10 20:35:00 2018 From: vijaykumar at bravegnu.org (Vijay Kumar) Date: Mon, 11 Jun 2018 06:05:00 +0530 Subject: [Chennaipy] PySangamam: Call For Proposals Reminder Message-ID: <7ca889a2-5c07-2439-f009-0676e63a6231@bravegnu.org> Hi Everyone, This is to remind people about the Call for Proposals, for the Python Conference, PySangamam. PySangamam would like to invite you to present your ideas and showcase your open source projects. We are looking for talks related to Python and on anything that will be of interest to the Python loving community. The conference has a CFP process, where speakers submit a talk proposal for the conference, and the proposal goes through a review process. A set of talks will be selected from proposals, by a review panel. Please be noted that there two types of talks - talk-with-slides (20 min + 5 min for questions), and poster presentation. While talk-with-slides generally needs to appeal to a wide section of the community, posters can cover niche topics, and can be done in regional languages, like Tamil, as well. You can submit your proposal at https://pysangamam.org Important Dates * Proposal Submission Deadline: 1st July 2018 * Announcement of Selected Talks: 1st August 2018 * Conference date: 7th & 8th September Regards, Vijay From mrvaruntandon at gmail.com Thu Jun 14 00:21:27 2018 From: mrvaruntandon at gmail.com (Varun Tandon) Date: Thu, 14 Jun 2018 09:51:27 +0530 Subject: [Chennaipy] help regarding time series analysis Message-ID: Dear All, Greeting of the Day! During the past few days, I started to learn about time series analysis and specifically about the ARIMA model. I am using Statsmodels in python3. I have obtained a dataset from https://archive.ics.uci.e du/ml/datasets/SML2010 . It contains a small time series with data for 15 days measured at frequency of 15 min. I have explored the dataset and have found 4 variables of interest and i have run the Augmented Dickey Fuller test on each of these variables and, from which i have inferred each of these variable is stationary,but some variables have clear trends, so there are some contradictions. Please help me understand the trend and seasonality in this dataset. please go thru https://stackoverflow.com/q/50841722/9937076 . the graphs for one of the variable with there autocorrelation and partial autocorrelation function with a confidence interval of 95% are uploaded to stack overflow. Please guide me further towards building a ARIMA model for these variables. I would be grateful to any help you provide. Thanking you! regards, Varun -------------- next part -------------- An HTML attachment was scrubbed... URL: From sureshkumarr.s at gmail.com Mon Jun 18 00:49:31 2018 From: sureshkumarr.s at gmail.com (S Suresh) Date: Mon, 18 Jun 2018 10:19:31 +0530 Subject: [Chennaipy] SDN Training Session in College Message-ID: All, Since last few months, i started conducting SDN(Software Defined Networking) Training in collages for no cost .This topic is relevant to Networking Domain. So far , I have been taken training on 2 colleges in chennai. Topic: Introductory Session on Software Defined Networking with RYU SDN Controller Objective: helps them to learn about latest Networking technology, helps them to do SDN research projects. Duration : 2 hours Mode of Training: Theory & Demonstration If any anybody interested to arrange the session in your collage, you can reach me in email. About myself: Sr Architect, 16+ Years exp in the IT/Networking/Telecom industry, working in SDN for last 4 years. Thanks Suresh -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkatesh.umaashankar at gmail.com Mon Jun 18 01:17:21 2018 From: venkatesh.umaashankar at gmail.com (Venkatesh U) Date: Mon, 18 Jun 2018 10:47:21 +0530 Subject: [Chennaipy] SDN Training Session in College In-Reply-To: References: Message-ID: Hi Suresh, I am Venkatesh. I work for Ericsson as a machine learning researcher. What would be a best way to start with SDN. Could you help with some resources. Thanks, Venkatesh On Mon, 18 Jun 2018 at 10:19 AM, S Suresh wrote: > > All, > > Since last few months, i started conducting SDN(Software Defined > Networking) Training in collages for no cost .This topic is relevant to > Networking Domain. > > So far , I have been taken training on 2 colleges in chennai. > > Topic: Introductory Session on Software Defined Networking with RYU SDN > Controller > > Objective: helps them to learn about latest Networking technology, helps > them to do SDN research projects. > > Duration : 2 hours > > Mode of Training: Theory & Demonstration > > > If any anybody interested to arrange the session in your collage, you can > reach me in email. > > > About myself: Sr Architect, 16+ Years exp in the IT/Networking/Telecom > industry, working in SDN for last 4 years. > > Thanks > Suresh > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 77minds at gmail.com Tue Jun 19 00:54:13 2018 From: 77minds at gmail.com (Karthikeyan A K) Date: Tue, 19 Jun 2018 10:24:13 +0530 Subject: [Chennaipy] [Job] Python, Devops, and Frontend evelopers Message-ID: Hello All, One of the startups I am coding for is expanding, we are looking for the following positions (all are remote work freelancer position, expected to put at-least 20 hrs of work a week) 1. Python web developers with Django knowledge 2. Front end Javascript Developers (Should be good in at least one framework, say Vue, React) 3. Data-scientist, to analyze the web traffic and generate trends out of it 4. DevOps who can manage our infrastructure 5. We also need to have our own blog, so any one who is good freelance wordpress developer may apply too If you match any one of the criteria, please mail me with your resume. -- Karthikeyan A K Founder of Code Tribe https://is.gd/codetribe Author of https://mindaslab.github.io/I-Love-Ruby/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijaykumar at bravegnu.org Wed Jun 20 06:46:08 2018 From: vijaykumar at bravegnu.org (Vijay Kumar) Date: Wed, 20 Jun 2018 16:16:08 +0530 Subject: [Chennaipy] June Meetup (RSVP Required) Message-ID: <4a428723-e6d0-2a78-4b28-c41898f554fb@bravegnu.org> # June Meetup ## Date & Time * 23rd June (Saturday) * 4:00pm to 6:30pm ## Venue LBR Towers, 10th Floor, No: 327, Anna Salai, Teynampet, Chennai Opposite to Kamarajar Memorial Hall, Google Map: https://goo.gl/maps/wBXysGYNkMr OpenStreet Map: https://www.openstreetmap.org/search?query=13.04893%2C80.25019 ## Schedule * Introduction * Powering Python with Rust by Ravi Shankar * Job Queues in Python by Naren * Networking Tea * Stack frames and Tail Call Recursion in Python by Varun Dey * Lightning Talks * Discussions Only the talk titles are included here, for the sake of brevity. For details about the talks and the speakers, please visit https://www.meetup.com/Chennaipy/events/251629116/ ## RSVP There is no entry fees. All are welcome. Please RSVP on our Meetup page https://www.meetup.com/Chennaipy/events/251629116/ ## New to Python? If you are new to Python, you can make best use of the meetup, if you go through any of the following resources, before attending the meetup. * Invent Your Own Computer Games with Python, Chapters 1 - 9 http://inventwithpython.com/chapters/ * Google's Python Course (with Lecture Videos) https://developers.google.com/edu/python/ * How to Think Like a Computer Scientist, Chapters 1 - 12 http://greenteapress.com/wp/think-python-2e/ From vijaykumar at zilogic.com Wed Jun 20 07:44:26 2018 From: vijaykumar at zilogic.com (Vijay Kumar) Date: Wed, 20 Jun 2018 11:44:26 -0000 Subject: [Chennaipy] June Meetup (RSVP Required) References: <4a428723-e6d0-2a78-4b28-c41898f554fb@bravegnu.org> Message-ID: The venue is actually: BotVFX, LBR Towers, 10th Floor, No: 327, Anna Salai, Teynampet, Chennai On Wednesday 20 June 2018 04:16 PM, Vijay Kumar wrote: > > # June Meetup > > ## Date & Time > > * 23rd June (Saturday) > * 4:00pm to 6:30pm > > ## Venue > > LBR Towers, 10th Floor, No: 327, > Anna Salai, Teynampet, Chennai > > Opposite to Kamarajar Memorial Hall, > > Google Map: https://goo.gl/maps/wBXysGYNkMr > OpenStreet Map: > https://www.openstreetmap.org/search?query=13.04893%2C80.25019 > > ## Schedule > > * Introduction > * Powering Python with Rust by Ravi Shankar > * Job Queues in Python by Naren > * Networking Tea > * Stack frames and Tail Call Recursion in Python by Varun Dey > * Lightning Talks > * Discussions > > Only the talk titles are included here, for the sake of brevity. For > details about the talks and the speakers, please visit > https://www.meetup.com/Chennaipy/events/251629116/ > > ## RSVP > > There is no entry fees. All are welcome. > > Please RSVP on our Meetup page > https://www.meetup.com/Chennaipy/events/251629116/ > > ## New to Python? > > If you are new to Python, you can make best use of the meetup, if you > go through any of the following resources, before attending the > meetup. > > * Invent Your Own Computer Games with Python, > Chapters 1 - 9 http://inventwithpython.com/chapters/ > > * Google's Python Course (with Lecture Videos) > https://developers.google.com/edu/python/ > > * How to Think Like a Computer Scientist, Chapters 1 - 12 > http://greenteapress.com/wp/think-python-2e/ > > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy From poornagurram at gmail.com Thu Jun 21 11:04:09 2018 From: poornagurram at gmail.com (Gurram Poorna) Date: Thu, 21 Jun 2018 20:34:09 +0530 Subject: [Chennaipy] Call For Promotions Message-ID: Hello Guys, It's time to show your love for the python community. When it comes to python it's all about community and that's you. We need you to promote our "*Pycon India 2018 10th anniversary*" at your workplace, colleges, Opensource groups, meetups, any place you feel is relevant. Here, I'm attaching two cool posters made by our volunteers which can be helpful for you to promote by sticking on notice boards in colleges and companies and also to share across your WhatsApp, Facebook, mailing lists and any relevant place over the internet. The community also needs inspiration so let you be the one to inspire by posting a photo of you promoting our event in twitter with hashtag #LoverForPython #PyconIndia2018. *It's a journey of 10 amazing years for Pycon India. Let's make the celebrations huge.* Regards, Prudhvi Social Media Team, Pycon India 2018. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PyCon-poster for institutes.pdf Type: application/pdf Size: 551778 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PyCon-poster for companies.pdf Type: application/pdf Size: 551425 bytes Desc: not available URL: From oopsgopi at gmail.com Mon Jun 25 07:30:32 2018 From: oopsgopi at gmail.com (gopinath p) Date: Mon, 25 Jun 2018 17:00:32 +0530 Subject: [Chennaipy] ChennaiPy - June Edition - MoM Message-ID: Hi All, Kindly find below MoM of chennaipy June edition. *Date & Time:* 23-June-2018 4PM-6.45PM *Venue:* BotVFX,Teynampet *Talk 1:* Powering python with rust *Speaker:* Ravi Shankar - what is heavy computation. - About rust - Why rust - Advantages of rust - Rust FFI with python - memory management with rust & other memeory manager with garbage collection - Q & A *Talk 2:* Presentation Tips *Speaker:* Vijay - About pysangamam - Types of talks - Tips for talks/presentation - Poster presentation - Demo Presentation - Wow audience - Submit a Proposal(https://cfp.pysangamam.org/) - Q & A *Talk 3:* Stack frames and tail call recursion in python *Speaker:* Varun Dey - What are Stack frames - How naive recursive function works behind the scenes - Other ways of performing recursive function by saving computing time and space. - Introduction to Tail call recursion in Python - Benchmarking recursive functions. - Q & A *Lightning Talk 1:* Alternative Softwares *Speaker:* Abhishek Yadav - Discussed on list of alternative software. ** Abhishek will share alternative software list. Please add if i missed any. Thanks Gopinath P -------------- next part -------------- An HTML attachment was scrubbed... URL: From stylesen at gmail.com Tue Jun 26 22:57:01 2018 From: stylesen at gmail.com (Senthil Kumaran S) Date: Wed, 27 Jun 2018 08:27:01 +0530 Subject: [Chennaipy] [COMMERCIAL] [JOB] Python Developer Opportunity at SolveIT Message-ID: Hi, We are looking for a seasoned Python developer who has a deep understanding of computer programming and possesses a passion for developing, fixing and maintaining software. Job Title: Python Developer. Location: Chennai, India. SolveIT is continually growing! Interested in being part of our great team? SolveIT Solutions Private Limited, based out of Chennai is a Subsidiary of Content Raven Inc., based out of Massachusetts, USA. Key responsibilities include: * Implement custom Python modules for our clients. * Maintain and fix Python based software. * Learn, adapt and contribute to already stable code base. * Engage in our ever expanding Python projects portfolio. Qualifications: * Software Engineer with 3+ years of relevant work experience * Bachelor's / Master's degree in Computer Science and Engineering * Proficiency in Python, Jinja templating, JSON, Web development frameworks such as Flask / Django, JavaScript, JQuery * Experience with ORM and Relational databases, REST APIs * Experience in agile software development practices * Version control skills * Contribution to Free Open Source Software is a plus * Skills to communicate ideas effectively and a good team player Benefits of being an employee at SolveIT include, but are not restricted to: * Competitive compensation packages * Tremendous opportunity to grow both professionally and personally Sounds interesting? Then email your profile to Mr. Vinayak Ekambaram vinayak [_at_] contentraven [_dot_] com with the subject line "Python Developer Application". PS: Posting this on behalf of my friend Vinayak to find the right talent. Thank You. -- Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From vijaykumar at bravegnu.org Thu Jun 28 00:58:11 2018 From: vijaykumar at bravegnu.org (Vijay Kumar) Date: Thu, 28 Jun 2018 10:28:11 +0530 Subject: [Chennaipy] PySangamam: Call For Proposals Reminder In-Reply-To: <7ca889a2-5c07-2439-f009-0676e63a6231@bravegnu.org> References: <7ca889a2-5c07-2439-f009-0676e63a6231@bravegnu.org> Message-ID: Hi Everyone, The CFP deadline is getting closer, there are only 3 more days to go, and hence wanted to remind everyone about this. Please submit your proposal at https://pysangamam.org Regards, Vijay On Monday 11 June 2018 06:05 AM, Vijay Kumar wrote: > Hi Everyone, > This is to remind people about the Call for Proposals, for the Python > Conference, PySangamam. PySangamam would like to invite you to present > your ideas and showcase your open source projects. We are looking for > talks related to Python and on anything that will be of interest to > the Python loving community. > > The conference has a CFP process, where speakers submit a talk > proposal for the conference, and the proposal goes through a review > process. A set of talks will be selected from proposals, by a review > panel. Please be noted that there two types of talks - > talk-with-slides (20 min + 5 min for questions), and poster > presentation. While talk-with-slides generally needs to appeal to a > wide section of the community, posters can cover niche topics, and can > be done in regional languages, like Tamil, as well. > > You can submit your proposal at https://pysangamam.org > > Important Dates > > * Proposal Submission Deadline: 1st July 2018 > * Announcement of Selected Talks: 1st August 2018 > * Conference date: 7th & 8th September > > Regards, > Vijay > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy From deepak at hasura.io Fri Jun 29 07:47:23 2018 From: deepak at hasura.io (Deepak Sahoo) Date: Fri, 29 Jun 2018 17:17:23 +0530 Subject: [Chennaipy] GraphQL Engine on Postgres - Talk at ChennaiPy Message-ID: Hi Vijay, My name is Deepak and I'm a community manager at Hasura. We have recently soft-launched the Hasura GraphQL engine . This gives you GraphQL APIs instantly on existing Postgres based application. We are also working towards open sourcing this in a few weeks. I wanted to check with you to see if we can arrange for a remote speaking session/live-demo by Tanmai (our founder) about this tool at one of your upcoming Meetups. In this talk, we'll go over the design and architecture of this high-performance, low-footprint engine. For example, on Heroku's free tier with the free postgres addon, you can get query throughputs in excess of a 1000 reqs/sec at around ~50MB of RAM. We will take you over how to set Hasura up with your existing Postgres applications, including authentication and authorization, so that you can start using GraphQL from your apps without writing backend code. Do let me know if this is something you might be interested in. Best, Deepak -- *Deepak Sahoo* Community Manager hasura.io | *@HasuraHQ * | *Facebook * | *LinkedIn * Gitkube - Deploy to Kubernetes using git push (Open Source) Hasura in the news: TechCrunch | TheNewStack -------------- next part -------------- An HTML attachment was scrubbed... URL: