problem with PyRunner when importing Yade in python
Hi,
I imported Yade in python like described in [1].
This works but when I create a class in which Yade is called and add a PyRunner that calls a function of the class, I get an error:
NameError: name 'self' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module
Can somebody help me with that, please?
here is the code:
import sys
sys.path.
from yadePythonImport import *
class MyYadeSim():
def __init__(self):
self.data = []
]
def run(self):
print self.data
def storeData(self):
if __name__ == "__main__":
mySim = MyYadeSim()
mySim.run()
------
[1] https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alexander Eulitz [Eugen]
- Solved:
- Last query:
- Last reply: