Files
TJWaterServerBinary/app/services/network_import.py
jiang 5966d039de refactor(backend)!: separate algorithm and data layers
Reorganize algorithm packages by business responsibility, move orchestration into services, and keep database access behind pooled repositories.

Harden analysis API validation, remove unsafe legacy simulation endpoints, and add regression and architecture boundary coverage.

BREAKING CHANGE: legacy algorithm module paths and obsolete simulation endpoints are removed.
2026-09-04 17:30:55 +08:00

7 lines
226 B
Python

from app.native.wndb.inp.importer import read_inp
def network_update(file_path: str, project_code: str) -> None:
"""Replace one project's hydraulic model from an EPANET INP file."""
read_inp(project_code, file_path)