- Thank you received: 0
pickling.py not working?
7 years 3 months ago #148
by janfp
pickling.py not working? was created by janfp
Hi all,
is it possible that the pickling example is currently not working?
I ran it inside a ipython3-shell. After the script finished, I looked at loaded_data which is indeed an array of BaseVectors, however, taking the first of these it turns out to have size
In [4]: loaded_data[0].size
Out[4]: 140545872919416
which does not seem to be correct
Trying to print the vector causes a segfault.
I also tried plain pickler, not NgsPickler, yet with the same result.
thx,
Jan
is it possible that the pickling example is currently not working?
I ran it inside a ipython3-shell. After the script finished, I looked at loaded_data which is indeed an array of BaseVectors, however, taking the first of these it turns out to have size
In [4]: loaded_data[0].size
Out[4]: 140545872919416
which does not seem to be correct
Trying to print the vector causes a segfault.
I also tried plain pickler, not NgsPickler, yet with the same result.
thx,
Jan
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
7 years 3 months ago #149
by christopher
Replied by christopher on topic pickling.py not working?
Yes pickling was indeed broken for BaseVectors since the move to pybind11. This has been fixed in this commit:
github.com/NGSolve/ngsolve/commit/a128c3...c75d9dd6afc91a7228b7
Thanks for reporting
github.com/NGSolve/ngsolve/commit/a128c3...c75d9dd6afc91a7228b7
Thanks for reporting
The following user(s) said Thank You: janfp
Time to create page: 0.113 seconds