docs: 完善项目文档和使用说明
- 更新README.md,补充GUI特性说明和参数配置文档 - 新增使用说明目录,包含完整的操作手册和界面截图 - 优化generate_template.py,支持自定义模板输出路径 - 改进GUI界面布局,优化文件上传和模板导出功能 - 添加系统参数配置说明(电压、功率因数等)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user