Update run_simulation method
This commit is contained in:
3
main.py
3
main.py
@@ -24,6 +24,7 @@ import influxdb_info
|
|||||||
import influxdb_api
|
import influxdb_api
|
||||||
import py_linq
|
import py_linq
|
||||||
import time_api
|
import time_api
|
||||||
|
import simulation
|
||||||
|
|
||||||
JUNCTION = 0
|
JUNCTION = 0
|
||||||
RESERVOIR = 1
|
RESERVOIR = 1
|
||||||
@@ -2744,7 +2745,7 @@ async def fastapi_run_project_by_date(network: str, querydate: str) -> str:
|
|||||||
bg_end_time_str = bg_end_time.strftime("%Y-%m-%dT%H:%M:%SZ")
|
bg_end_time_str = bg_end_time.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||||
print(f"bg_end_time_str: {bg_end_time_str}")
|
print(f"bg_end_time_str: {bg_end_time_str}")
|
||||||
|
|
||||||
result = run_simulation_ex(name=network, simulation_type='realtime', start_datetime=bg_start_time_str, end_datetime=bg_end_time_str)
|
result = simulation.run_simulation(name=network, simulation_type='realtime', start_datetime=bg_start_time_str, end_datetime=bg_end_time_str)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user