[Numpy-discussion] The problem with arrays

2009-09-22 Thread yogesh karpate
Please kindly go through following code snippet for i in range(a1): data_temp=(bpf[left[0][i]:right[0][i]])# left is an array and right is also an array maxloc=data_temp.argmax() #taking indices of max. value of data segment maxval=data_temp[maxloc]

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread Nadav Horesh
-discussion] The problem with arrays Please kindly go through following code snippet for i in range(a1): data_temp=(bpf[left[0][i]:right[0][i]])# left is an array and right is also an array maxloc=data_temp.argmax() #taking indices of max. value of data segment maxval

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread yogesh karpate
-boun...@scipy.org בשם yogesh karpate נשלח: ג 22-ספטמבר-09 14:11 אל: numpy-discussion@scipy.org נושא: [Numpy-discussion] The problem with arrays Please kindly go through following code snippet for i in range(a1): data_temp=(bpf[left[0][i]:right[0][i]])# left is an array and right

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread Fabrice Silva
Le mardi 22 septembre 2009 à 17:42 +0530, yogesh karpate a écrit : I just tried your idea but the result is same. it didnt help . 2009/9/22 Nadav Horesh nad...@visionsense.com A quick answer with going into the details of your code: try

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread yogesh karpate
On Tue, Sep 22, 2009 at 7:01 PM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: Le mardi 22 septembre 2009 à 17:42 +0530, yogesh karpate a écrit : I just tried your idea but the result is same. it didnt help . 2009/9/22 Nadav Horesh nad...@visionsense.com A quick answer with going

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread Fabrice Silva
Le mardi 22 septembre 2009 à 23:00 +0530, yogesh karpate a écrit : This is the main thing . When I try to store it in array like R_time=array([R_t[0][i]]). It just stores the final value in that array when loop ends.I cant get out of this For loop.I really have this small problem. I really

Re: [Numpy-discussion] The problem with arrays

2009-09-22 Thread yogesh karpate
Dear Fabrice Finally your suggestions worked :).Thanks a lot... soon the code I'm working will be available as a part of Free Software Foundation. Regards Yogesh On Tue, Sep 22, 2009 at 11:23 PM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: Le mardi 22 septembre 2009 à