github-actions[bot] commited on
Commit
2ee9c68
·
1 Parent(s): 50657ba

deploy: sync from GitHub 2026-04-18T01:20:09Z

Browse files
Files changed (1) hide show
  1. server.py +5 -0
server.py CHANGED
@@ -269,6 +269,8 @@ app.add_middleware(
269
  allow_headers=["*"],
270
  )
271
 
 
 
272
  class PowerflowRequest(BaseModel):
273
  substationVoltage: float = 1.05
274
  numBuses: int = 13
@@ -295,6 +297,9 @@ def health():
295
  return {"status": "ok", "data_ready": _DATA_DIR.exists(),
296
  "message": "gpu2grid OpenDSS server"}
297
 
 
 
 
298
 
299
 
300
  """Return available traces"""
 
269
  allow_headers=["*"],
270
  )
271
 
272
+
273
+
274
  class PowerflowRequest(BaseModel):
275
  substationVoltage: float = 1.05
276
  numBuses: int = 13
 
297
  return {"status": "ok", "data_ready": _DATA_DIR.exists(),
298
  "message": "gpu2grid OpenDSS server"}
299
 
300
+ @app.get("/health")
301
+ def health():
302
+ return "OK"
303
 
304
 
305
  """Return available traces"""