From b060c569b31d5090106033804f5c785abc6b8f5f Mon Sep 17 00:00:00 2001 From: Robert Ernst Date: Tue, 10 Aug 2021 09:14:31 +0200 Subject: [PATCH] Fix tecan upload for pools --- clarity_epp/upload/tecan.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clarity_epp/upload/tecan.py b/clarity_epp/upload/tecan.py index 4d41340..4ab8222 100644 --- a/clarity_epp/upload/tecan.py +++ b/clarity_epp/upload/tecan.py @@ -65,7 +65,11 @@ def results(lims, process_id): for artifact in process.all_outputs(): if artifact.name not in ['Tecan Spark Output', 'Tecan Spark Samplesheet', 'check gemiddelde concentratie', 'Label plaat']: - artifact_name = artifact.name.split('_')[0] + if len(artifact.samples) == 1: # Remove 'meet_id' from artifact name if artifact is not a pool + artifact_name = artifact.name.split('_')[0] + else: + artifact_name = artifact.name + # Set Average Concentratie fluorescentie sample_fluorescence = sum(sample_measurements[artifact_name]) / float(len(sample_measurements[artifact_name])) sample_concentration = ((sample_fluorescence - baseline_fluorescence) * regression_slope) / 2.0