[LIMS-1964] Move tomogram motion correction endpoint #18
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-1964
Summary:
To consolidate all motion correction related data in EM tomography into one component, instead of one displayed pre-alignment and one displayed post alignment, the tomogram motion correction endpoint was moved to
dataCollections, meaning a tomogram is no longer required to display motion correction data.Changes:
/tomograms/{id}/motionto/dataCollection/{id}/tomogram-motiongetMiddlenow return central slice of alignment images, instead of all imagesalignedTotalnow refers to the total number of movies with alignment data, andtotalto the raw totalTo test:
/dataCollections/6017406/tomogram-motion, check if 5 items are returned, and 5 aligned items are mentioned inalignedTotal/dataCollections/6017406/tomogram-motion?getMiddle=true, check if you're returned an item with a refined tilt angle of 16 (central slice)/dataCollections/6017411/tomogram-motion, check if no aligned movies are counted/dataCollections/6017408/tomogram-motion?page=1&limit=1, check if a single item is returned