[Tutor] Python Script: Downloading Youtube videos by search result

2013-04-19 Thread Sayan Chatterjee
-- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog: www.blissprofound.blogspot.com Volunteer , Padakshep www.padakshep.org

Re: [Tutor] Sharing Code Snippets

2013-04-10 Thread Sayan Chatterjee
r change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
Thanks Oscar figured it out...:) On 11 April 2013 00:17, Oscar Benjamin wrote: > On 10 April 2013 17:58, Sayan Chatterjee > wrote: > > Thank Andre for your prompt answer. > > > > I'll figure out the plotting issue once the dat files are made. So it's >

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
il 2013 23:52, Sayan Chatterjee wrote: > Hi Andre, > > Is it that? We can have different plots and hence animation from a single > data file.Very good!...if you have some time in your disposal, it will be > kind of you to illumine in this matter...may be some useful link will do. > &

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
oat argument required, not numpy.ndarray > > > > What to do? :-| > > There are pieces of the code snipet you sent which are not defined, so it > is not clear why you are getting this error. How long is the file > "ZA_Phase_Plot.py"? At least you can send from li

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
is a numpy > array. > > You have in mind adding a third entry to the table with just floats. > > > > 2/ > > ''' > > your_data = numpy.zeros([10,10]) # initialize a 2D numpy array with all > zeros > > for i in range(your_data.shape[0]): > > for j in

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
on't), I want to see the phase plot evolving with time. Thus the need of a time axis and hence plot with V(velocity-Yaxis), X ( Position -X axis) and t (Time-Z axis). Regards, Sayan On 10 April 2013 23:07, Alan Gauld wrote: > On 10/04/13 16:44, Sayan Chatterjee wrote: > > I have

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
y and called data and is in a python list/table format > ''' > > Now you want to make a new column or row for your data file, which > contains floats. Well, all the entries inside the numpy array are already > floats, so it is not clear to me why you want a new colu

Re: [Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
e would make it easier to help answer your question. Eg., > from your description, it is not clear if your existing data is in a table, > and in the table you have numpy arrays, or if you have one numpy array of > rank 2 with data in it. > > > Regards, > > Andre >

[Tutor] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
-- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog: www.blissprofound.blogspot.com Volunteer , Padakshep www.padakshep.org

Re: [Tutor] How to make a python script run on startup

2013-04-09 Thread Sayan Chatterjee
__ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of

Re: [Tutor] Flip a coin

2013-04-09 Thread Sayan Chatterjee
; Thank you very much, looking forward to hear from you. > > Regards, > Najam. > > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor &g

Re: [Tutor] How to make a python script run on startup

2013-04-09 Thread Sayan Chatterjee
> Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- ---------- *Sayan Chatterjee* Dept. of Physics and Meteo

Re: [Tutor] While loop

2013-04-06 Thread Sayan Chatterjee
use this as an early example, showing you later how much > elegantly it can be done. > > > -- > DaveA > __**_ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/**mailma

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 >

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.

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

2013-04-04 Thread Sayan Chatterjee
v_za_temp) *TypeError: can't multiply sequence by non-int of type 'float'* Please Help Cheers, Sayan -- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Resi

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
an Gauld wrote: > On 27/03/13 17:36, Sayan Chatterjee wrote: > > 2) Traceback (most recent call last): >>File "ZA.py", line 43, in >> if p_za[i] > 4.0: >> ValueError: The truth value of an array with more than one element is >> ambiguou

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
March 2013 22:29, Walter Prins wrote: > Hi Sayan, > > On 27 March 2013 16:31, Sayan Chatterjee wrote: > >> p_za = [None]*N is not giving away the error message. >> >> for i in range(0,N): >> p_za.append = p_initial[i] + t*K*cos(K*p_initial[i]); is also not

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-27 Thread Sayan Chatterjee
t;) > > > > > > Here I want to write different data sets in files having different name > i.e > > I want to create the files with the data sets. I am quite new to Python, > so > > you can assume zero knowledge while answering. Thanks for your support. > :) >

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
the C analogue of: int array[200] for(i=0;i<200;i++) array[i] = 2*i + 5; On 27 March 2013 21:44, Walter Prins wrote: > Hi, > > > On 27 March 2013 15:50, Sayan Chatterjee wrote: > >> Dear all, >> >> When trying to print or assign array elem

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-27 Thread Sayan Chatterjee
Putting "w" instead of "r+" probably solves the problem. The error is not showing now. On 27 March 2013 21:47, Sayan Chatterjee wrote: > for t in range(0,200): > fname = 'file_' + str(t) > > So it will assign fname values file_0, file_1 so on. Drop

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-27 Thread Sayan Chatterjee
27 March 2013 21:38, Walter Prins wrote: > Hello, > > On 27 March 2013 15:59, Sayan Chatterjee wrote: > >> Hi Amit, >> >> fo = fopen('fname','r+') >> fo.write("%d %d",j,counter) >> >> >> Is giving the following er

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-27 Thread Sayan Chatterjee
mistake? Cheers, Sayan On 27 March 2013 12:20, Amit Saha wrote: > On Wed, Mar 27, 2013 at 4:49 PM, Sayan Chatterjee > wrote: > > Yes, ffmpeg will do if multiple plots can be generated using mathplotlib > . > > I'll look up the links you provided and get back to you, i

[Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
aching the code herewith. -- ------ *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog: www.blissprofound.blogspot.com Volunteer ,

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-26 Thread Sayan Chatterjee
Yes, ffmpeg will do if multiple plots can be generated using mathplotlib . I'll look up the links you provided and get back to you, if I can't figure it out. :) On 27 March 2013 12:12, Amit Saha wrote: > On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee > wrote: > >

Re: [Tutor] HELP: Creating animation from multiple plots

2013-03-26 Thread Sayan Chatterjee
; On Wed, Mar 27, 2013 at 4:23 PM, Amit Saha wrote: > > Hi Sayan, > > > > On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee > > wrote: > >> Dear All, > >> > >> I am a newbie to Python but have a fair know how of other languages i.e > C > >

[Tutor] HELP: Creating animation from multiple plots

2013-03-26 Thread Sayan Chatterjee
ely, Sayan -- ------ *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog: www.blissprofound.blogspot.com Volunteer , Padakshep www.pad