-
Notifications
You must be signed in to change notification settings - Fork 52
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
Added get_samples function to retrieve the acronym #1166
base: develop
Are you sure you want to change the base?
Added get_samples function to retrieve the acronym #1166
Conversation
… assignment to before statement
… assignment to before statement
…aged-when-retrieving-samples-from-drac' of https://github.com/mxcube/mxcubecore into 1156-sample-names-and-protein-acronyms-are-not-well-managed-when-retrieving-samples-from-drac
@@ -70,6 +71,43 @@ class Session(BaseModel): | |||
logbook_URL: Optional[str] = None | |||
|
|||
|
|||
class Instrument(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would in general be very nice with some comments on each field and class, unless its evident what it is. It would make it easier to understand what purpose they have and for others to adopt.
It looks like the |
The acronym is a mandatory parameter for each sample, as it is frequently used when creating the final target folder.
However, it is not retrieved when downloading the puck information, so a second request is made to obtain the sample (or sample sheets) by investigation.
This PR proposes to retrieve such information when the synchronization is triggered as well as a new model has been added to:
model/lims_session
I wonder if this file should be renamed (to
lims
if it groups all models for the lims) or refactored in smaller bits