-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add current steps to sample details #167
base: master
Are you sure you want to change the base?
Conversation
LIMS2DB/classes.py
Outdated
current_steps = {} | ||
for step in sample_in_steps: | ||
step_details = get_protocolstep_details(self.session, step[0])[0] | ||
current_steps[step_details[0]] = {"protocol_name": step_details[1], "is_qc_protocol": step_details[2]} |
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.
Do we need to check whether step_details is not empty list, it would raise an exception in that case.
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.
If a sample is assigned to a step in LIMS, the definition for that step should also exist. If we get an empty list, then there would be something very wrong in LIMS.
Dependent on NationalGenomicsInfrastructure/genologics_sql#19