Re: [Tutor] TypeError: can't multiply sequence by non-int of type 'float'

2013-04-05 Thread Sayan Chatterjee
Thanks all...I realized my mistake!!...:) On 4 April 2013 20:12, Andreas Perstinger wrote: > Sayan Chatterjee wrote: > > >I know this error occurs when one tries to multiply a string with a > >fraction i.e float. In my case , I can't figure out how can a numpy > >floating point array be a stri

Re: [Tutor] TypeError: can't multiply sequence by non-int of type 'float'

2013-04-04 Thread Andreas Perstinger
Sayan Chatterjee wrote: >I know this error occurs when one tries to multiply a string with a >fraction i.e float. In my case , I can't figure out how can a numpy >floating point array be a string. The problem is not that the numpy array is a string but that you append the array to a python list:

Re: [Tutor] TypeError: can't multiply sequence by non-int of type 'float'

2013-04-04 Thread Oscar Benjamin
On 4 April 2013 14:40, Sayan Chatterjee wrote: > Dear All, > > I know this error occurs when one tries to multiply a string with a fraction > i.e float. In my case , I can't figure out how can a numpy floating point > array be a string. Interestingly, the concerned expression gets printed in > th

Re: [Tutor] TypeError: can't multiply sequence by non-int of type 'float'

2013-04-04 Thread Sayan Chatterjee
I attach the script herewith. On 4 April 2013 19:10, Sayan Chatterjee wrote: > Dear All, > > I know this error occurs when one tries to multiply a string with a > fraction i.e float. In my case , I can't figure out how can a numpy > floating point array be a string. Interestingly, the concerne