← Back to team overview

yade-users team mailing list archive

Re: [Question #663441]: some modules fail to be loaded when i call a class from a python file

 

Question #663441 on Yade changed:
https://answers.launchpad.net/yade/+question/663441

Description changed to:
Good evening,
I have the following problem

I have a python script that calls yade functions from another file.

When the other file just has the functions defined as functions (def
etc) everything runs correctly

When i wrap the functions in a class i can run the yade engine and some packings, but for example 
		pred = inGtsSurface(s)  this line cases the error message

NameError: global name 'inGtsSurface' is not defined
And some more seemingly random functionalities fail. 
Any ideas/tests you want me to run
Will be more than welcome

Thanks!
John

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.