Problem with saveVars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I want to save some variables with utils.saveVars() and load it in another script with utils.loadVars().
test script 1:
#!/usr/bin/python
# -*- coding: utf-8 -*-
a = 1
b = 2
c = 3
utils.saveVars(
test script 2:
#!/usr/bin/python
# -*- coding: utf-8 -*-
utils.loadVars(
error message:
Running script save-vars-test2.py
Traceback (most recent call last):
File "/home/
execfile(
File "save-vars-
utils.
File "/home/
d=cPickle.
KeyError: 'Invalid key: pickledPythonVa
The simulation needs to be saved and then loaded to use this function.
https:/ /answers. launchpad. net/yade/ +question/ 167511