Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Need Help with Math Operand Error

$
0
0
Okay I have the following code
Code:

with arcpy.da.UpdateCursor(fc, fields) as rows:
                    for row in rows:
                        row[2] = row[0] * (32.82010551 * 32.82010551) * (0.000000092903)
                        row[3] = (row[1] *(32.82010551 * 32.82010551) * 25)/(row[0] * (32.82010551 * 32.82010551))
                        rows.updateRow(row)

Where I get this error:

PYTHON ERRORS:
Traceback info:
File "G:\Scripts\Threshold_IP_Scripts\GetStreamStatsA.py", line 32, in StreamStatistics
row[2] = row[0] * (32.82010551 * 32.82010551) * (0.000000092903)

Error Info:
unsupported operand type(s) for *: 'NoneType' and 'float'

ArcPy ERRORS:


Any ideas? I am stuck!

Viewing all articles
Browse latest Browse all 2485

Trending Articles