|
|
43f50ec07b
|
测试修改
|
2026-06-25 15:50:02 +08:00 |
|
|
|
6a1014afcc
|
refactor(step10_new_arch): 同步新架构 view + service 到散点 CSV 模式
|
2026-06-24 12:44:01 +08:00 |
|
|
|
6a962f5e8f
|
feat(new-arch):主窗口全功能增强(图标系统 + 全链路参数同步 + 服务输出统一解析 + Step12 分类浏览)
1. main_view.py:图标系统 + 全链路参数自动传导
- 新增 _res() 解析项目根的相对路径,PyInstaller 打包后兼容 sys._MEIPASS。
- 新增 QListWidgetItem / QMessageBox 导入,左侧导航列表支持右键菜单 + 错误弹窗。
- ROUTES 12 条全部新增 icon 字段("1.png" 等),侧边栏显示业务图标。
- 新增 step_outputs 缓存机制:每个 step 完成后把 output_path 写入 self.step_outputs。
- 新增 _sync_dependencies() 同步函数 + _safe_set_config() 包装器,
按依赖图把上游产物推给下游 view:
step1 → step6 water_mask_path
step3 → step4 / step6 / step10 deglint_img_path / bsq_path
step4 → step9 sampling_csv_path
step5 → step6 csv_path
step6 → step7 / step8 training_csv_path
step8 → step9 models_dir(父目录)
step9 → step11 prediction_csv_dir / prediction_csv_path(双推)
step10 → step11 geotiff_dir / geotiff_path(双推)
2. services/step1-13:统一输出解析器集成
- 新增 src/new/services/_output_resolver.py,提供 resolve_output_dir /
copy_to_user_path / get_user_output_path / is_user_specified 四个共享工具。
- 每个 service 把原有的私有 _resolve_xxx_dir 改为调用 resolve_output_dir,
强制执行"用户优先"规则(用户指定 output_path 时用其父目录,否则用 work_dir/<subdir>)。
- 用户指定文件名 vs 底层硬编码文件名的"事后劫持"通过 copy_to_user_path 完成
(覆盖 step2、step4、step7、step8 等底层 step 不接受 output_path 关键字的步骤)。
3. views/step12_view.py:恢复 ImageCategoryTree + ImageViewerWidget 高级组件
- 删掉精简版占位 Label,挂回旧版的 ImageCategoryTree(按"模型评估/光谱分析/
统计图表/处理结果/含量分布图"五类自动归类工作目录下的图像文件)。
- 挂回 ImageViewerWidget(滚轮缩放 0.1x-5x + 50ms 防抖 + FastTransformation/
SmoothTransformation 智能切换 + Ctrl+Wheel + 工具栏)。
- 扫描按钮接通 image_tree.scan_directory(),选中节点即时加载到 image_viewer。
- 按钮样式切换为 ModernStylesheet(success/primary)统一视觉。
|
2026-06-17 13:28:58 +08:00 |
|
|
|
48668c9e74
|
services/step10-13:终极决战!打通空间插值、可视化出图与报告生成的最后四步独立服务
|
2026-06-17 09:57:13 +08:00 |
|
|
|
6fc0394fe2
|
services/step6-9:打通光谱计算与机器学习预测的核心独立服务
|
2026-06-17 09:34:21 +08:00 |
|
|
|
f8d5ea2eb8
|
services/step2-5:打通前四个预处理步骤的真实后端独立服务
新增 src/new/services/{step2,step3,step4,step5}_service.py 四个独立后端服务:
|
2026-06-17 09:15:22 +08:00 |
|
|
|
61bd8582e5
|
路由壳升级:TaskWorker 三信号 + main_router→main_view 迁移(54/54 smoke 通过)
|
2026-06-16 18:23:38 +08:00 |
|
|
|
2a89fdc62c
|
services/placeholder_service.py:step2-step13 占位服务(execute_placeholder 返回 not_implemented 状态)
|
2026-06-16 17:53:19 +08:00 |
|
|
|
e62f53bf77
|
services/step1_service.py:水域掩膜纯函数服务(execute_step1,零 PyQt/零全局,异常统一转 dict)
|
2026-06-16 17:53:11 +08:00 |
|