Create report.py
Browse files- tools/report.py +21 -0
tools/report.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def build_final_report(title, slotting, picking, insights, heatmap_path):
|
| 2 |
+
report = f"## {title}\n\n"
|
| 3 |
+
|
| 4 |
+
if slotting is not None and not slotting.empty:
|
| 5 |
+
report += "### 📦 Slotting Summary\n"
|
| 6 |
+
report += "Optimized SKU placement generated based on velocity.\n\n"
|
| 7 |
+
|
| 8 |
+
if picking is not None and not picking.empty:
|
| 9 |
+
report += "### 🚶 Picking Route Summary\n"
|
| 10 |
+
report += "Optimized path minimizes aisle switching and reduces travel distance.\n\n"
|
| 11 |
+
|
| 12 |
+
if insights:
|
| 13 |
+
report += "### 🔍 Operational Insights\n"
|
| 14 |
+
report += insights + "\n\n"
|
| 15 |
+
|
| 16 |
+
if heatmap_path:
|
| 17 |
+
report += "### 🔥 Heatmap Generated\n\n"
|
| 18 |
+
|
| 19 |
+
report += "---\nGenerated by **Procelevate Autonomous Warehouse Operator**."
|
| 20 |
+
|
| 21 |
+
return report
|