Skip to content

Commit

Permalink
Simplified getting linked lims data.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcam committed Jun 13, 2024
1 parent 2f9be8a commit 372fc56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang_qc/db/helper/wells.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def get_metrics_by_well_product_id(

product_metrics = well.pac_bio_product_metrics
lib_lims_data = [
row
for row in map(lambda product: product.pac_bio_run, product_metrics)
if row is not None
product.pac_bio_run
for product in product_metrics
if product.pac_bio_run is not None
]
if len(lib_lims_data) != len(product_metrics):
raise Exception("Partially linked LIMS data or no linked LIMS data")
Expand Down

0 comments on commit 372fc56

Please sign in to comment.