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

bugfix in algorithm (poor was never reached)

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