akera commited on
Commit
2275510
·
verified ·
1 Parent(s): 9d53f89

Update src/validation.py

Browse files
Files changed (1) hide show
  1. src/validation.py +10 -2
src/validation.py CHANGED
@@ -472,12 +472,20 @@ def generate_scientific_validation_report(
472
  adequacy_result["overall_adequate"]
473
  )
474
 
 
 
 
 
 
 
475
  if all_checks_pass:
476
  report.append("🎉 **Final Verdict**: Ready for scientific evaluation!")
477
- elif format_result["valid"] and overall_coverage >= 0.8:
478
  report.append("⚠️ **Final Verdict**: Can be evaluated with limitations")
 
 
479
  else:
480
- report.append("❌ **Final Verdict**: Please address issues before submission")
481
 
482
  return "\n".join(report)
483
 
 
472
  adequacy_result["overall_adequate"]
473
  )
474
 
475
+ can_evaluate_with_limits = (
476
+ format_result["valid"] and
477
+ overall_coverage >= 0.8 and
478
+ not any("❌" in issue for issue in content_result.get("issues", []))
479
+ )
480
+
481
  if all_checks_pass:
482
  report.append("🎉 **Final Verdict**: Ready for scientific evaluation!")
483
+ elif can_evaluate_with_limits:
484
  report.append("⚠️ **Final Verdict**: Can be evaluated with limitations")
485
+ report.append(" - Results will include notes about statistical limitations")
486
+ report.append(" - Consider improving coverage/quality for publication-grade results")
487
  else:
488
+ report.append("❌ **Final Verdict**: Please address critical issues before submission")
489
 
490
  return "\n".join(report)
491