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
  • Loading branch information
smallsco committed Jul 3, 2024
1 parent ccbb702 commit 92e9d4b
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 92e9d4b

Please sign in to comment.