Open Gavinator98 opened 1 year ago
Thank you for reporting this issue. We are aware that this is not possible and it is an h5py issue in general. We are testing some mitigation strategies, but h5py is explicitly preventing to use pickle and changing the h5py package is not a general solution. If you need that, you can do it though (remove the exception in the h5py code).
Describe the bug netx hdf5 models create an error when attempting to save a compiled executable
To reproduce current behavior Steps to reproduce the behavior:
net = netx.hdf5.Network(net_config='some_model.net') executable = net.compile(run_cfg=Loihi2HwCfg())
save(processes=[net], executable=executable, filename="compiled_model.pkl")
h5py objects cannot be pickled
Expected behavior netx.hdf5.Network objects work with the save() function without modification.
Environment (please complete the following information):