Re: [Tutor] grb.select for multiple times

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 18:23, Jason Snyder wrote: > I have a grib2 file with wind data at multiple taus as shown below: This list is for the core Python language and standard library. For anything outside that you are more likely to get answers on the specific library support forum or community. If that

Re: [Tutor] Spyder IDE Anaconda3: Problem with Plt.savefig

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 20:20, Stephen P. Molnar wrote: > I have written a Python3 program to plot and save UV/VIS spectra from > the results of an Orca quantum mechanical calculation. Caveat: This forum is for help on the core Python language and its standard library. Asking about anything beyond that may

Re: [Tutor] Tables in Tkinter

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 23:40, Pooja Bhalode wrote: > I am trying to create normal tables in Tkinter. First you need to define what a "normal table" is. There is no such thing in standard Tkinter, so any kind of table is not normal. Do you want a simple grid of values? Do you want a spreadsheet type grid

Re: [Tutor] How to get url call back from the browser

2017-03-01 Thread Danny Yoo
Hi Palanikumar, It looks like you're using Python 2, since you're referring to SimpleHTTPServer. But you probably do not want to use SimpleHTTPRequestHandler: it's a local file system server. The docs at

[Tutor] Spyder IDE Anaconda3: Problem with Plt.savefig

2017-03-01 Thread Stephen P. Molnar
I have written a Python3 program to plot and save UV/VIS spectra from the results of an Orca quantum mechanical calculation. I input the name of the molecule .dat file, without the suffix. Everything is fine until I get to the point where I want to save the figure as name.png using: figure

[Tutor] Tables in Tkinter

2017-03-01 Thread Pooja Bhalode
Hi, I am trying to create normal tables in Tkinter. Can someone please guide me as to what functions I can use, I looked into tkintertable, but that does not seem to work for me. I tried installing it but it gave me a bunch of errors while installation and does not work. Is there any other

Re: [Tutor] grb.select for multiple times

2017-03-01 Thread Jason Snyder
In the below email I want to plot the time series of the uwind values at a specific latitude and longitude. On Wed, Mar 1, 2017 at 6:23 PM, Jason Snyder wrote: > I have a grib2 file with wind data at multiple taus as shown below: > > 3:485167:d=2017030112

[Tutor] grb.select for multiple times

2017-03-01 Thread Jason Snyder
I have a grib2 file with wind data at multiple taus as shown below: 3:485167:d=2017030112:UGRD:10 m above ground:3 hour fcst: 8:1652471:d=2017030112:UGRD:10 m above ground:6 hour fcst: 13:2704909:d=2017030112:UGRD:10 m above ground:9 hour fcst: 18:3865964:d=2017030112:UGRD:10 m above ground:12

Re: [Tutor] Learning Objectives?

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 10:09, Leam Hall wrote: > I see computer science as a science that calls upon our creative nature > to produce excellence. Adding constraints like secure coding and TDD > push us to even greater artistic expression. Lack of constraints gives > us the current standard of

Re: [Tutor] Understanding the error "method got multiple values for keyword argument "

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 10:50, Peter Otten wrote: >> sees your call as something like: >> >> total(name = "John", 1, 2, 10 ) > > I think total(name="John", *(1, 2, 3)) > > is rather resolved as > > total(1, 2, 3, name="John") > Ah, yes that makes sense. Thanks for the clarification Peter (and Steven).

[Tutor] How to get url call back from the browser

2017-03-01 Thread Palanikumar Gopalakrishnan
*import SimpleHTTPServer import SocketServer PORT = 8000 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()* I use this code to run simple *http server.* If i enter in browser in

Re: [Tutor] Understanding the error "method got multiple values for keyword argument "

2017-03-01 Thread Steven D'Aprano
On Wed, Mar 01, 2017 at 01:48:04PM +0530, Pabitra Pati wrote: > I want to understand the error message I am getting. > Below is my code piece :- > > def total(name, *args): > if args: > print("%s has total money of Rs %d/- " %(name, sum(args))) > else: >

Re: [Tutor] help with and

2017-03-01 Thread Steven D'Aprano
On Wed, Mar 01, 2017 at 09:29:04AM +, Alan Gauld via Tutor wrote: > You need to be explicit: > >if hours_worked > 40 and hours_worked < 60: > > You can also write what you intend in a slightly > different form: > >if (40 < hours_worked < 60): > > Note: > The second form an unusual

Re: [Tutor] Understanding the error "method got multiple values for keyword argument "

2017-03-01 Thread Peter Otten
Alan Gauld via Tutor wrote: > On 01/03/17 08:18, Pabitra Pati wrote: > >> def total(name, *args): >> if args: >> print("%s has total money of Rs %d/- " %(name, sum(args))) >> else: >> print("%s's piggy bank has no money" %name) >> >> I can call this

Re: [Tutor] Learning Objectives?

2017-03-01 Thread Leam Hall
On 02/28/17 05:24, M Hashmi wrote: Coding is an artthat helps you craft beautiful things in digital world. As beginner it's pretty natural to confuse about which learning curve can benefit you most in future. I see computer science as a science that calls upon our creative nature to

Re: [Tutor] Understanding the error "method got multiple values for keyword argument "

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 08:18, Pabitra Pati wrote: > def total(name, *args): > if args: > print("%s has total money of Rs %d/- " %(name, sum(args))) > else: > print("%s's piggy bank has no money" %name) > > I can call this method passing the extra arguments

Re: [Tutor] help with and

2017-03-01 Thread Peter Otten
darrickbled...@gmail.com wrote: > For some reason I am getting a syntax error when I try and write my second > If statement. I cannot find anything wrong with the statement because it > is set up the same as all the others I see online. Perhaps someone can > inform me why I am getting this.

Re: [Tutor] Asking about sending signal to RF receiver through GPIO pins

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 01:29, Quang nguyen wrote: > send the signal to RF receiver through pins in Pi2. I need to send the > signal from clicking a button in UI. > > Can anyone give me some hints? What bit do you need help on? Is it building a UI? Is it clicking a button? Is it sending the signal? For

Re: [Tutor] help with and

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 06:21, darrickbled...@gmail.com wrote: > wage = eval(input("Enter in the employees hourly wage: ")) #get wage > hours_worked = eval(input("Enter in the number of hours worked: ")) Don't use eval() like this it is a security risk and is a very bad habit to get into. Instead use an

[Tutor] Understanding the error "method got multiple values for keyword argument "

2017-03-01 Thread Pabitra Pati
I want to understand the error message I am getting. Below is my code piece :- def total(name, *args): if args: print("%s has total money of Rs %d/- " %(name, sum(args))) else: print("%s's piggy bank has no money" %name) I can call this method passing

[Tutor] help with and

2017-03-01 Thread darrickbledsoe
For some reason I am getting a syntax error when I try and write my second If statement. I cannot find anything wrong with the statement because it is set up the same as all the others I see online. Perhaps someone can inform me why I am getting this. Thanks for your help Darrick Bledsoe II #