feat(timeseries): unify element history queries
Generic Container CI/CD / test-build-publish (push) Successful in 2m10s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 2m10s

This commit is contained in:
2026-09-14 12:30:41 +08:00
parent 0685f6dd17
commit 682c26fddd
17 changed files with 888 additions and 531 deletions
+8 -1
View File
@@ -532,7 +532,14 @@ def run_simulation(
raise RuntimeError("run_project output missing times.report_step")
if not scheme_type or not scheme_name:
raise ValueError("extended simulation requires analysis run type and name")
detail = scheme_detail or {}
detail = dict(scheme_detail or {})
result_units = output_data.get("units")
if isinstance(result_units, dict):
detail["result_units"] = {
key: str(result_units[key]).strip()
for key in ("flow", "pressure")
if result_units.get(key)
}
run_id = create_analysis_run(
name=db_name,
scheme_name=scheme_name,