From 372fc567c64a4f70806079291b8e48d0390afa60 Mon Sep 17 00:00:00 2001 From: mgcam Date: Thu, 13 Jun 2024 12:09:32 +0100 Subject: [PATCH] Simplified getting linked lims data. --- lang_qc/db/helper/wells.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang_qc/db/helper/wells.py b/lang_qc/db/helper/wells.py index 57d7b01..4c8f089 100644 --- a/lang_qc/db/helper/wells.py +++ b/lang_qc/db/helper/wells.py @@ -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")