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.  LavaStorm Wired Behaviour

    Employee
    Posted 10-18-2016 14:25

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

    Originally posted by: jpstory

    Hi

    Can someone please help explain why node 1.7 works but not 1.6 ?

    The only difference I can see is that, 1.7 tries to access the inRec object while initializing the node.

    Do I need to sort of "close" that inRec object before move on? Please kindly advise.

    Sample.txt


  • 2.  RE: LavaStorm Wired Behaviour

    Employee
    Posted 10-18-2016 19:02

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

    Originally posted by: stonysmith

    It appears to me that it would depend upon how many input records you have.

    I would not read inRec in the initialize code. You are "consuming" the first record without acting on it. Line 23 reads another record from the file and you are losing the first record. Caveat: you could move line 23-24 after line 27. But, to do that, you should persist the inRec value... use self.inRec instead of just inRec

    Also.. you deleted the "return True" that belongs in the pump routine. That may be affecting your results.

    inRec is an object (array of values). There's no need to close it nor set it to null, etc.
    =====
    your processParse routine is only returning a True value.. if wish to return False you need to do so.
    Python variables are, by default local to their subroutine.
    Line 30 refers to a variable "success" that is local to that routine only.. it is not setting the value on line 27


  • 3.  RE: LavaStorm Wired Behaviour

    Employee
    Posted 10-18-2016 19:33

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

    Originally posted by: jpstory

    Thanks very much ... will try that when I am back in office tomorrow.