data_process_ui/app/script/format_longitudinal_profile.py
2026-01-12 09:21:42 +08:00

14 lines
293 B
Python

import formatter
#规定表格中的数据格式
def table_formatter(row, col):
if col in [2]:
return formatter.integer()
elif col in [1, 3, 4, 5, 6, 7]:
return formatter.decimal()
elif col in [0]:
return formatter.kdecimal()
elif col in []:
return formatter.angle()
return None