Initial commit: CMM Report Analyzer
FastAPI app that parses CMM inspection reports (PDF/Excel/CSV), computes SPC metrics (Cp/Cpk/Pp/Ppk, control limits, Shapiro-Wilk), generates interactive Plotly charts, and provides AI-powered quality summaries via Azure OpenAI with graceful fallback. Includes 21 passing tests covering parsers, SPC calculations, and API endpoints.
This commit is contained in:
13
app/routers/results.py
Normal file
13
app/routers/results.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from fastapi import APIRouter, HTTPException
|
||||
|
||||
from app.services.batch import get_batch
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/results/{batch_id}")
|
||||
async def get_results(batch_id: str):
|
||||
batch = get_batch(batch_id)
|
||||
if batch is None:
|
||||
raise HTTPException(404, "Batch not found")
|
||||
return batch.to_dict()
|
||||
Reference in New Issue
Block a user