imput导入修正,去除掉废弃内容
This commit is contained in:
@ -6,7 +6,6 @@ VisualizationPanel - 可视化分析面板
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
from typing import Optional, List, Union
|
||||
@ -14,11 +13,7 @@ from typing import Optional, List, Union
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
# 路径归一化 helper(与 pipeline.get_step_output_dir 互为表里)
|
||||
_HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
if _HERE not in sys.path:
|
||||
sys.path.insert(0, _HERE)
|
||||
from _step_path_resolver import get_step_output_path, resolve_step_widget, resolve_subdir
|
||||
from src.gui.panels._step_path_resolver import get_step_output_path, resolve_step_widget, resolve_subdir
|
||||
|
||||
from PyQt5.QtCore import Qt, QTimer, QThread, pyqtSignal, QAbstractTableModel
|
||||
from PyQt5.QtGui import QPixmap
|
||||
@ -1716,7 +1711,7 @@ class Step12VizPanel(QWidget):
|
||||
factory = getattr(main_window, '_panel_factory', None) if main_window else None
|
||||
|
||||
# [新增] 直接从 Step 1 面板读取原始 .shp 的绝对路径,突破工作目录限制
|
||||
step1_panel = factory.get_panel('step1_mask') if factory else None
|
||||
step1_panel = factory.get_panel('step1') if factory else None
|
||||
if step1_panel:
|
||||
s1_conf = step1_panel.get_config()
|
||||
s1_mask = s1_conf.get('mask_path')
|
||||
|
||||
Reference in New Issue
Block a user