User Profile

Collapse

Profile Sidebar

Collapse
susieg
susieg
Last Activity: Jul 3 '12, 11:21 PM
Joined: Jul 3 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • susieg
    replied to Function object is not iterable
    Hi bvdet,
    that was a good idea. Adding the parentheses did not solve the issue though.
    See more | Go to post

    Leave a comment:


  • susieg
    started a topic Function object is not iterable

    Function object is not iterable

    Hi,
    here is a code snippet that is supposed to calculate Value2 by multiplying Wfactor and Value1 for identical object ID's.
    Unfortunately the line with "Value2 =" casts a function object is not iterable error. I am stumped on where it is coming from.
    Code:
    testDict = {}
    for test in helps.getUniqueValues(fc,"ID"):
                Value2 = ([c.getValue("Value1")*c.getValue("Wfactor")
    ...
    See more | Go to post
    Last edited by bvdet; Jul 3 '12, 10:45 PM. Reason: Add code tags
No activity results to display
Show More
Working...