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
"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
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
"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
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
"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
Does anyone have an idea why I can't do this?
for k in range(nr):
contribution=N.zeros(shape(H['area']))
contribution=[contribution+grid[:,:,z:,k,0]/A for z in
range(len(H['outheight']))]
zplot[:,:,k]=zplot[:,:,k]+contribution;
And on the interactive line:
>>> shape(contribution)
(360, 18