Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread Kent Johnson
Alan Gauld wrote: > "John" <[EMAIL PROTECTED]> wrote > >> Sorry, here's the output from the command line >> > run Day_footprint.py > > Sorry for all the questions but I've never seen that "run" syntax > before. > What environment are you running? What IDE/OS/Python version etc? IPython has

Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread Alan Gauld
"John" <[EMAIL PROTECTED]> wrote > To be honest, part of the problem is that I work in about four > different > Python environments!! > This here was just a cut from running a script I wrote at the DOS > prompt... > but that is not my usual flavor. really? What Python version are you using? Is

Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread John
Well, To be honest, part of the problem is that I work in about four different Python environments!! I've had a hard time getting the scipy suite to work fully on windows, and for number crunching it's just easier to run in linux. This here was just a cut from running a script I wrote at the DOS p

Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread Alan Gauld
"John" <[EMAIL PROTECTED]> wrote > Sorry, here's the output from the command line > run Day_footprint.py Sorry for all the questions but I've never seen that "run" syntax before. What environment are you running? What IDE/OS/Python version etc? > trying... > header has been opened > succes

Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread John
Sorry, here's the output from the command line >>>run Day_footprint.py trying... header has been opened succes! Reading grid 2006051100 at: Mon Oct 29 16:57:57 2007 processing: 2006051100 Traceback (most recent call last): File "Day_footprint.py", line 48, in ? contribution=[contri

Re: [Tutor] calculation with arrays: shape mismatch

2007-10-29 Thread Alan Gauld
"John" <[EMAIL PROTECTED]> wrote > > But I get the error: > ValueError: shape mismatch: objects cannot be broadcast to a single > shape > > for the highlighted line. When sending error messages send the entire error traceback not just the summary message. Error traces are full of useful informa