[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-11 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

[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] Appending an extra column in a data file

2013-04-10 Thread Sayan Chatterjee
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 On Apr 10, 2013, at 8:44 AM, Sayan Chatterjee wrote

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

2013-04-10 Thread Sayan Chatterjee
be nice if you could precisely describe what you currently have and what you want. Hope this helps, Andre -- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence

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

2013-04-10 Thread Sayan Chatterjee
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 alan.ga...@btinternet.com wrote: On 10/04/13 16:44, Sayan Chatterjee wrote: I have some data files with numpy arrays stored in it in 2

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

2013-04-10 Thread Sayan Chatterjee
currently have and what you want. Hope this helps, Andre -- -- Sayan Chatterjee Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91

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

2013-04-10 Thread Sayan Chatterjee
the variables are defined. That should help. Andre -- -- *Sayan Chatterjee* Dept. of Physics and Meteorology IIT Kharagpur Lal Bahadur Shastry Hall of Residence Room AB 205 Mob: +91 9874513565 blog

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

2013-04-10 Thread Sayan Chatterjee
, Sayan Chatterjee sayanchatter...@gmail.com 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. I have written

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 oscar.j.benja...@gmail.com wrote: On 10 April 2013 17:58, Sayan Chatterjee sayanchatter...@gmail.com 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] How to make a python script run on startup

2013-04-09 Thread Sayan Chatterjee
- 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

Re: [Tutor] Flip a coin

2013-04-09 Thread Sayan Chatterjee
. Regards, Najam. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- -- *Sayan

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

2013-04-09 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 ___ Tutor maillist - Tutor

Re: [Tutor] While loop

2013-04-06 Thread Sayan Chatterjee
__**_ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor -- -- *Sayan Chatterjee

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 andiper...@gmail.com wrote: Sayan Chatterjee sayanchatter...@gmail.com 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

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

2013-04-04 Thread Sayan Chatterjee
, 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

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 sayanchatter...@gmail.com 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] HELP: Creating animation from multiple plots

2013-03-27 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] HELP: Creating animation from multiple plots

2013-03-27 Thread Sayan Chatterjee
wrote: On Wed, Mar 27, 2013 at 4:23 PM, Amit Saha amitsaha...@gmail.com wrote: Hi Sayan, On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee sayanchatter...@gmail.com wrote: Dear All, I am a newbie to Python but have a fair know how of other languages i.e C etc. I want to run

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

2013-03-27 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 amitsaha...@gmail.com wrote: On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee sayanchatter

[Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
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 , Padakshep

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

2013-03-27 Thread Sayan Chatterjee
...@gmail.com wrote: On Wed, Mar 27, 2013 at 4:49 PM, Sayan Chatterjee sayanchatter...@gmail.com 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, if I can't figure it out. :) Sure, good luck

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

2013-03-27 Thread Sayan Chatterjee
wrote: Hello, On 27 March 2013 15:59, Sayan Chatterjee sayanchatter...@gmail.comwrote: Hi Amit, fo = fopen('fname','r+') fo.write(%d %d,j,counter) Is giving the following error: File ZA.py, line 30, in module fo = open('fname','r+') IOError: [Errno 2] No such file or directory

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 sayanchatter...@gmail.com wrote: for t in range(0,200): fname = 'file_' + str(t) So it will assign fname values file_0, file_1 so on. Dropping the quotes is giving

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
the C analogue of: int array[200] for(i=0;i200;i++) array[i] = 2*i + 5; On 27 March 2013 21:44, Walter Prins wpr...@gmail.com wrote: Hi, On 27 March 2013 15:50, Sayan Chatterjee sayanchatter...@gmail.comwrote: Dear all, When trying to print or assign array elements, getting

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

2013-03-27 Thread Sayan Chatterjee
, Sayan Chatterjee sayanchatter...@gmail.com wrote: for t in range(0,200): fname = 'file_' + str(t) So it will assign fname values file_0, file_1 so on. Dropping the quotes is giving me IOError: [Errno 2] No such file or directory: 'file_0' Indeed the file is not present

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
wrote: Hi Sayan, On 27 March 2013 16:31, Sayan Chatterjee sayanchatter...@gmail.comwrote: 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 working. append() is a method, so using append you want

Re: [Tutor] IndexError: index out of bounds

2013-03-27 Thread Sayan Chatterjee
alan.ga...@btinternet.com wrote: On 27/03/13 17:36, Sayan Chatterjee wrote: 2) Traceback (most recent call last): File ZA.py, line 43, in module if p_za[i] 4.0: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() This implies