Skip to content

Commit

Permalink
update validate_udf_values
Browse files Browse the repository at this point in the history
  • Loading branch information
idalindegaard committed Aug 21, 2024
1 parent 92cc190 commit b8e81eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cg_lims/EPPs/udf/calculate/adjust_missing_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def validate_udf_values(artifact: Artifact) -> bool:
Then the function returns the output as 'False' and logs all those sample IDs in the EPP log"""

output = True
if not artifact.udf.get("Reads to sequence (M)") or float(artifact.udf["Reads to sequence (M)"]) < 0:
if not artifact.udf.get("Reads to sequence (M)") or float(artifact.udf.get("Reads to sequence (M)")) < 0:
output = False
LOG.info(
f"Sample {artifact.samples[0].id} has no or a negative value for Reads to sequence (M). Skipping."
Expand Down

0 comments on commit b8e81eb

Please sign in to comment.