feat: Update baseline calculations and LLM prompts

- Change baseline calculations to use integers instead of floats to simplify data.
- Update LLM constraints and prompt for more accurate anomaly detection.
- Refine known_issues to reduce false positives.
- Update PROGRESS.md with new TODO items.
This commit is contained in:
2025-08-21 12:12:15 -05:00
parent c5a446ea65
commit e119bc7194
5 changed files with 16 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ def store_data(new_data):
def _calculate_average(data, key1, key2):
"""Helper function to calculate the average of a nested key in a list of dicts."""
values = [d[key1][key2] for d in data if key1 in d and key2 in d[key1] and d[key1][key2] != "N/A"]
return sum(values) / len(values) if values else 0
return int(sum(values) / len(values)) if values else 0
def calculate_baselines():
data = load_data()