modify project name, change influxdb token, remove log simulation result
This commit is contained in:
@@ -890,7 +890,7 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
||||
cs.append(valve_status)
|
||||
set_status(name_c, cs)
|
||||
# 运行并返回结果
|
||||
result = run_project(name_c)
|
||||
run_project(name_c)
|
||||
time_cost_end = time.perf_counter()
|
||||
print('{} -- Hydraulic simulation finished, cost time: {:.2f} s.'.format( datetime.now(pytz.timezone('Asia/Shanghai')).strftime('%Y-%m-%d %H:%M:%S'), time_cost_end - time_cost_start))
|
||||
# DingZQ 下面这几句一定要这样,不然读取不了
|
||||
@@ -942,10 +942,10 @@ if __name__ == "__main__":
|
||||
globals.source_outflow_region_patterns, globals.realtime_region_pipe_flow_and_demand_patterns = get_realtime_region_patterns(project_info.name, globals.source_outflow_region_id, globals.realtime_region_pipe_flow_and_demand_id)
|
||||
|
||||
# 基础日期和时间(日期部分保持不变)
|
||||
base_date = datetime(2025, 5, 4)
|
||||
base_date = datetime(2025, 8, 12)
|
||||
|
||||
# 循环生成96个时间点(15分钟间隔)
|
||||
for i in range(96):
|
||||
for i in range(4):
|
||||
# 计算当前时间偏移
|
||||
time_offset = timedelta(minutes=15 * i)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user