Skip to content

Commit

Permalink
Fix tecan upload for pools
Browse files Browse the repository at this point in the history
  • Loading branch information
rernst committed Aug 10, 2021
1 parent 70b19a8 commit b060c56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clarity_epp/upload/tecan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b060c56

Please sign in to comment.