Skip to content

Commit

Permalink
StepRunner: ignore archived reagent kits when adding default reagents…
Browse files Browse the repository at this point in the history
… to a step (#53)

* Fix EPP log message duplication and missing log entries in Clarity 6+ when combining Python automations with LLTK/LITKs

* Fix current_minor_version failure on Python 2

* StepRunner: ignore archived reagent kits when adding default reagents to a step
  • Loading branch information
smallsco authored Jul 19, 2024
1 parent 2fef234 commit f47c5ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions s4/clarity/steputils/step_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,15 @@ def add_default_reagents(self):
"""
For every required reagent kit in the step, the first active lot
will be selected. If there are no active lots it will be omitted.
Archived kits will be ignored on Clarity 6.1 (api revision 32) and later.
"""
revision = int(self.lims.current_minor_version[1:])
log.info("Adding default reagent lots.")
lots = []
for kit in self.step.configuration.required_reagent_kits:
if revision >= 32 and kit.archived:
continue
for lot in kit.related_reagent_lots:
if lot.status == "ACTIVE":
lots.append(lot)
Expand Down

0 comments on commit f47c5ca

Please sign in to comment.