This commit is contained in:
xinzish
2025-08-16 09:21:05 +08:00
3 changed files with 12 additions and 98 deletions

View File

@@ -593,6 +593,9 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
# 打开数据库
open_project(name_c)
dic_time = get_time(name_c)
print(dic_time)
# 获取水力模拟步长0:15:00
globals.hydraulic_timestep = dic_time['HYDRAULIC TIMESTEP']
# 将时间字符串转换为 timedelta 对象