Sorry that I missed some important message. The order if save and load are
not inversed. What I want to do is to load the data stored in the first run
when running the second time of my program. The intention is I guessed (may
not be true) some implicit initial states of each run affect the
Your current code has fragments like this:
weighted_load = load_obj(f'./sym.sobj')
print(f'weighted == weighted_load {weighted == weighted_load}')
save(weighted, f'./sym.sobj')
In particular, "sym.sobj" is read before it is written, so 'weighted_load'
will be None. If I put the "save" lines