Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fix pos control field names in the PCRReplicate invalid_reasons array
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronstephenson committed Jun 12, 2019
1 parent c695141 commit 3581425
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "lide",
"organization": "U.S. Geological Survey",
"description": "Web services for LILI (LIDE (Laboratory for Infectious Disease and the Environment) Information Management System)",
"version": "v0.104.3",
"version": "v0.104.4",
"status": "Release Candidate",

"permissions": {
Expand Down
12 changes: 6 additions & 6 deletions lideservices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,9 +1087,9 @@ def invalid_reasons(self):
reasons["ext_pos_dna_missing"] = False
if (pcrreplicate_batch.extraction_batch.ext_pos_dna_cq_value is not None
and pcrreplicate_batch.extraction_batch.ext_pos_dna_cq_value > Decimal('0')):
reasons["ext_pos_dna_positive"] = True
reasons["ext_pos_dna_negative"] = True
else:
reasons["ext_pos_dna_positive"] = False
reasons["ext_pos_dna_negative"] = False
# ext_pos_rt_rna_positive is a special case that only applies if the target of the pcrreplicate_batch is RNA
if pcrreplicate_batch.target.nucleic_acid_type.name == 'RNA':
rt = ReverseTranscription.objects.filter(
Expand All @@ -1099,9 +1099,9 @@ def invalid_reasons(self):
else:
reasons["ext_pos_rna_rt_missing"] = False
if rt.ext_pos_rna_rt_cq_value is not None and rt.ext_pos_rna_rt_cq_value > Decimal('0'):
reasons["ext_pos_rna_rt_positive"] = True
reasons["ext_pos_rna_rt_negative"] = True
else:
reasons["ext_pos_rna_rt_positive"] = False
reasons["ext_pos_rna_rt_negative"] = False
else:
reasons["ext_pos_rna_rt_missing"] = False
reasons["ext_pos_rna_rt_positive"] = False
Expand Down Expand Up @@ -1145,8 +1145,8 @@ def invalid_reasons(self):
else:
reasons = {
"peg_neg_invalid": False, "peg_neg_missing_replicates": False,
"ext_pos_dna_missing": False, "ext_pos_dna_positive": False,
"ext_pos_rna_rt_missing": False, "ext_pos_rna_rt_positive": False,
"ext_pos_dna_missing": False, "ext_pos_dna_negative": False,
"ext_pos_rna_rt_missing": False, "ext_pos_rna_rt_negative": False,
"ext_neg_missing": False, "ext_neg_positive": False,
"rt_neg_missing": False, "rt_neg_positive": False,
"pcr_neg_missing": False, "pcr_neg_positive": False,
Expand Down

0 comments on commit 3581425

Please sign in to comment.