Skip to content
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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

antolinos
Copy link
Contributor

@antolinos antolinos commented Feb 24, 2025

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

…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):
Copy link
Member

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.

@marcus-oscarsson
Copy link
Member

It looks like the poetry.lock is outdated, it should be taken care of if you run pre-commit run --all-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample names and protein acronyms are not well managed when retrieving samples from DRAC
2 participants