[LIMS-1761] Add initial model uploads #17
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA ticket: [LIMS-1761][(https://jira.diamond.ac.uk/browse/LIMS-1761)
Summary:
To further improve 3D classification models, users should be able to provide a low-res initial model to act as a starting point for building these classes.
This allows users to upload initial models which are dropped in the visit folder.
Changes:
To test:
Assuming you've mounted /dls and you're using the local development DB. Make sure you delete the files you've uploaded from the visit folder of the visit you're using afterwards
You can use
ispyb-restoretoo, just use a current EM visit (like bi34108-28)/proposals/cm31111/sessions/5/initialModelwith image.mrc.zip as the body (unzipped), check if the image is deposited in the visit directory for cm31111-5/proposals/cm31111/sessions/5/initialModelwith broken.mrc.zip as the body (unzipped), check if a 415 is returned (invalid file type)/proposals/cm31111/sessions/5/initialModelwith any non-MRC file, check if 415 is returned