feat(timeseries): unify element history queries
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user