timothygrant80 / cisTEM

Other
32 stars 27 forks source link

Beta version database upgrade changes #442

Closed twagner9 closed 1 year ago

twagner9 commented 1 year ago

Description

When updating a beta database to the current working version, there was initially a crash that prevented the update from running due to data being inserted in the wrong order in the REFINEMENT_PACKAGE_ASSETS table. @timothygrant80 allowed this update to actually complete by creating a temp table that stores the data from the old database and inserts it into the updated database, with the output_pixel_size being pulled from each corresponding REFINEMENT_PACKAGE_CONTAINED_PARTICLES_, and inserted into the REFINEMENT_PACKAGE_ASSETS table based on REFINEMENT_PACKAGE_ASSET_ID.

With the update able to complete, there was another issue that cropped up, which was the inability to use any existing classifications or refinement results, as needed values were stored as 0.0. This stemmed from the addition of 9 columns to the CLASSIFICATION_RESULT_ and REFEINEMENT_RESULT_ tables. To fix this, I added code that compares the pixel size in these two tables with the value stored in REFINEMENT_PACKAGE_CONTAINED_PARTICLES_ , and if different, updates the values for pixel size, spherical aberration, microscope voltage, and amplitude contrast columns, 4 of the 9 additions, which were not present in the beta database.

Fixes # (issue)

I have rebased my feature branch to be current with the master branch using to minimize conflicts and headaches

Which compilers were tested

These changes are isolated to the

How has the functionality been tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

Checklist: