Closed tmancal74 closed 6 years ago
Custom "soft links" were now tested for handling of cyclic reference. We can use the same technique to handle also the multiple occurrences of objects the file.
Solved for Saveable objects. Remains to be solved for numpy arrays, or perhaps all types
Saving and loading of objects in Quantarhei has been completely reworked. We are now using dill package instead of custom save and load routines with h5py as a format. Everything is much simpler and more flexible now. This solves the problem and shifts the responsibility for correct saving to dill package.
The issue is thus solved.
Saveable still saves the same object multiple times if it is found repeatedly in an object being saved. This has to be avoided.