feat: Enhance context generation with new table images for VO2 Max and Heart Rate Zones

- Added functionality to generate VO2 Max and Heart Rate Zones tables in the context_generator.py.
- Integrated graph_generator to create table images with specified data and styles.
- Updated report_generator.py to pass graph_generator to context generation.
- Introduced a new method in graph_generator.py to generate table images with customizable options.
- Created test scripts for Page 5 (RMR and NEAT calculations) and Page 6 (Meal Plan calculations) using actual patient data.
- Updated Jupyter notebook metadata for better environment identification.
This commit is contained in:
bolade
2025-11-21 11:38:43 +01:00
parent 9d51b006c0
commit 47f0c6f3fb
8 changed files with 825 additions and 294 deletions
+4 -1
View File
@@ -507,7 +507,10 @@ class ReportGeneratorService:
"gender": gender,
}
contexts = self.context_generator.generate_all_contexts(
patient_name, graphs_dict, metric_overrides=metric_overrides
patient_name,
graphs_dict,
metric_overrides=metric_overrides,
graph_generator=self.graph_generator,
)
# Step 5: Calculate analysis metrics