Save `eps1` and `mu1` bytecode
Let me start by saying that this is potentially a bad idea. Mostly because it could have some wierd bugs, I don't think it is necessarily any less secure for instance than using pickle. Anyway, I think it must be implemented carefully if at all, and probably it should also be optional.
Currently, when one uses IW2DResult.save
, the input object is saved using pickle
. This makes it so lambdas cannot be saved at all, and functions are only saved by name, not by functionality. It would be possible to save the bytecode as well, by not using pickle but instead another package. From looking very briefly around dill
seems to be a package designed for this, but I would suggest doing another round of searching to see if anything fits better.