docs: 完善项目文档和使用说明

- 更新README.md,补充GUI特性说明和参数配置文档
- 新增使用说明目录,包含完整的操作手册和界面截图
- 优化generate_template.py,支持自定义模板输出路径
- 改进GUI界面布局,优化文件上传和模板导出功能
- 添加系统参数配置说明(电压、功率因数等)
This commit is contained in:
dmy
2026-01-05 23:30:29 +08:00
parent c6168afd1d
commit b924f75add
10 changed files with 208 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
import pandas as pd
import numpy as np
def create_template():
def create_template(output_file='windfarm_template.xlsx'):
# Create sample data similar to the internal generator
data = []
@@ -58,7 +58,6 @@ def create_template():
df_params = pd.DataFrame(param_data)
# Save to Excel
output_file = 'windfarm_template.xlsx'
with pd.ExcelWriter(output_file) as writer:
df.to_excel(writer, sheet_name='Coordinates', index=False)
df_cables.to_excel(writer, sheet_name='Cables', index=False)