yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19060
Re: [Question #678668]: O.load Error
Question #678668 on Yade changed:
https://answers.launchpad.net/yade/+question/678668
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
this is a "classical" problem with O.save / O.load. You define a python function as triax.doneHook. The name of the function is saved and loaded. However, it is not defined in the second script, so when it is about to be called, it results in this error.
Either define the function in the second script or change the doneHook
please provide a WORKING example. I got "NameError: name 'num' is not
defined"
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.