Skip to content
Snippets Groups Projects
Commit 0e259f03 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

another bugfix in algorithm (poor was never reached)

parent 1de5f21c
No related branches found
No related tags found
2 merge requests!304update branch with master,!302automatic quality validation
Pipeline #52009 passed
......@@ -106,10 +106,9 @@ def calculate_qualities(task):
rfi_percent = int(record['rfi_percent'])
if rfi_percent > 0:
quality = "good"
if (rfi_percent >= quality_thresholds['moderate'] and
rfi_percent <= quality_thresholds['poor']) :
if rfi_percent >= quality_thresholds['moderate']:
quality = "moderate"
else:
if rfi_percent > quality_thresholds['poor']:
quality = "poor"
return quality
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment