Invalid syntax

R. Michael Weylandt michael.weylandt at gmail.com
Wed Nov 7 18:22:44 EST 2012


On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar
<smaran.harihar at gmail.com> wrote:
> Hi guys,
>
> I am stuck in one of those non identifiable error location in the code. The
> code keeps giving invalid syntax. This is my code.
>
> I am using the same code for another code and not sure why this is not
> working. This is the traceback that I am getting.
>
> Any idea where am I going wrong?

If the dpaste link is correct, you're missing a close-parenthesis at
the end of the w.record line:

w.record(collection[i][0], MAT[0], TSD[0], AnnTMin[0], ANNPREC[0],
float(collection[i][2]), float(collection[i][1]) ## <<--- Hereabouts

Cheers,
Michael



More information about the Python-list mailing list