-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need mechanism for updating file schema from previous versions. #36
Comments
For example, between 0.5.0 and the upcoming 0.5.1, the way selections are stored has changed from a Table to an Array (in PyTables parlance). This has changed the way the selection getters work for the SimFile such that selections stored the old way no longer work. The updater code needs to check for old-style selections and update them, leaving new-style selections alone. Only after it has finished everything should it update the version number of the statefile. |
Moving this to the next release. Since the splitting out of The restructuring of the package makes room for the machinery we will need to make a smooth version updater, so for now we are good to go. |
I think you can safely down-grade the priority, given that there isn't a full release yet. |
@orbeckst I think so. :D |
Closing for now. Not really necessary at the moment, and not having some checking every time a |
Upon loading an existing Container, the corresponding
ContainerFile
subclass should do a version check between the version given by the state file and the current version of MDS. It should then run code that updates the schema to that used by the current version of MDS.This will require:
ContainerFile
subclass, which can change each releaseThe text was updated successfully, but these errors were encountered: