[Yade-users] [Question #689176]: How to read user defined list from O.save('sample.yade.gz')

2020-03-06 Thread Leonard
New question #689176 on Yade: https://answers.launchpad.net/yade/+question/689176 Hi, I define a list in script1.py, and save as sample.yade.gz. And then I use script2.py to read the sample.yade.gz. In script2.py, I can not read the list defined in script1.py. Is there any idea to make it? Here

Re: [Yade-users] [Question #689176]: How to read user defined list from O.save('sample.yade.gz')

2020-03-06 Thread Jan Stránský
Question #689176 on Yade changed: https://answers.launchpad.net/yade/+question/689176 Status: Open => Answered Jan Stránský proposed the following answer: Hi, only C++ related data are O.save/O.load ed. To save/load python data, use e.g. python pickle module cheers Jan -- You received this

Re: [Yade-users] [Question #689176]: How to read user defined list from O.save('sample.yade.gz')

2020-03-06 Thread Leonard
Question #689176 on Yade changed: https://answers.launchpad.net/yade/+question/689176 Status: Answered => Solved Leonard confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because your team yade-users is an answer