I have python models which are created using a particular version of my module repository. As updates and changes are made to the repo, the models are not always backward compatible.
I’m wondering if it’s possible to store some sort of header info in the model which can be read before creating the Class instance. This way I would be able to pull the correct repository branch that works with the previously saved model.
First, I have an ABC (Abstract Base Class), which I then build MyModel classes from. Over time, the MyModel Class changes enough that it will not load a previous saved version. I’d like to find an elegant solution for being able to still use that model.
1