Commit Graph

6 Commits

Author SHA1 Message Date
chengkai3 c451a20f76 fix:[FL-153][导入雷电分布数据改成导入地闪密度数据]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-06-17 15:35:07 +08:00
chengkai3 46e3b203d4 feat:[FL-111][地闪密度计算功能优化]实现电压等级自动推荐半径
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-06-13 23:09:44 +08:00
chengkai3 a77500a762 fix: [FL-110] 对齐雷电流幅值统计数据过滤逻辑
修改 _fit_line_current_parameters 函数,使其数据处理逻辑与参考工程保持一致:
1. 数据过滤改为取绝对值,不再过滤0值和负值
2. 返回值增加 peak_max 和 peak_min 字段
3. API 响应模型添加最大值和最小值字段

主要变更:
- api/app/services/lightning_service.py
  * _fit_line_current_parameters: 数据清洗逻辑从 if item > 0 改为 abs(item)
  * 返回值从 3 个增加到 5 个,新增 peak_max 和 peak_min
  * prepare_line_lightning_current: 移除查询时的 > 0 过滤
  * 在 extra_profile_json 和 preparation_source 中记录 peak_max/peak_min

- api/app/schemas/lightning.py
  * LightningCurrentPreparationResponse: 添加 peak_max 和 peak_min 字段

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-06-13 23:00:24 +08:00
chengkai3 aebf152cd4 [migrate]:[FL-24][参数准备闭环与就绪校验]
Co-authored-by: multica-agent <github@multica.ai>
2026-06-07 20:37:53 +08:00
chengkai3 ba21ed8550 chore: sync workspace updates 2026-04-26 09:00:49 +08:00
chengkai3 db81bf41fc 前端框架修改 2026-04-26 00:14:25 +08:00