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 53f5d6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s4/clarity/steputils/step_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,13 @@ 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.
"""
log.info("Adding default reagent lots.")
lots = []
for kit in self.step.configuration.required_reagent_kits:
if kit.archived:
continue
for lot in kit.related_reagent_lots:
if lot.status == "ACTIVE":
lots.append(lot)
Expand Down

0 comments on commit 53f5d6b

Please sign in to comment.