Browse Source

delete Q learning models loading event and amend system schemas

highing666 3 years ago
parent
commit
1a6cd3bb4b
2 changed files with 3 additions and 5 deletions
  1. 2 4
      app/core/events.py
  2. 1 1
      app/schemas/system.py

+ 2 - 4
app/core/events.py

@@ -7,16 +7,14 @@ from fastapi import FastAPI
 from app.controllers.equipment.events import (
     regulate_ahu_freq,
     regulate_ahu_switch,
-    regulate_pau_switch,
     regulate_ventilation_fan_switch,
-    run_control_group
 )
-from app.controllers.events import load_q_learning_model
+# from app.controllers.events import load_q_learning_model
 
 
 def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
     async def start_app() -> None:
-        await load_q_learning_model()
+        # await load_q_learning_model()
         await regulate_ahu_freq()
         await regulate_ahu_switch()
         # await regulate_pau_switch()

+ 1 - 1
app/schemas/system.py

@@ -10,6 +10,6 @@ class BaseSystem(BaseModel):
 
 
 class ACAT(BaseSystem):
-    id: str
+    id: Optional[str]
     supply_static_press: float
     supply_static_press_set: float