LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  LAE Error Code: brain.node.ls.brain.node.brainpython.python2implem-entationfile.20

    Employee
    Posted 11-14-2014 03:53

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: lae_errors

    This post has been created for discussion of error code brain.node.ls.brain.node.brainpython.python2implem-entationfile.20.

    Please reply to this thread with any description of error conditions, diagnostic information, and recommended resolutions.


  • 2.  RE: LAE Error Code: brain.node.ls.brain.node.brainpython.python2implem-entationfile.20

    Employee
    Posted 11-14-2014 03:56

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: andycooper

    I'm trying to run the attached graph and I'm getting errors, does anyone have any ideas on what may be the issue?

    Thanks

    Andy

    LAE Tmp Usage.brg


  • 3.  RE: LAE Error Code: brain.node.ls.brain.node.brainpython.python2implem-entationfile.20

    Employee
    Posted 11-28-2014 04:30

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    Hey,

    There were a couple of problems with your python code in the LAE Properties node.

    First, the lines:
    a = self.properties.getArray(v)
    outRec["Value"] = a[0]
    Were causing problems if the returned array "a" was empty.

    Second, the following line was incorrect:
    outRec["Value"] = outRec["Value"] +","+ vv
    I think this was just a typo, and you meant to use "v" not "vv".

    So that block of code should become:


                    if self.properties.isArray(v) == True:
                        a = self.properties.getArray(v)
                        if (len(a) > 0):
                            outRec["Value"] = a[0]
                            for v in a[1:]:
                                outRec["Value"] = outRec["Value"] +","+ v