imput导入修正,去除掉废弃内容
This commit is contained in:
@ -5,13 +5,9 @@ Step3 面板 - 耀斑去除 (已移除“启用此步骤”)
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
_HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
if _HERE not in sys.path:
|
||||
sys.path.insert(0, _HERE)
|
||||
from _step_path_resolver import resolve_subdir, scan_work_dir_for_input
|
||||
from src.gui.panels._step_path_resolver import resolve_subdir, scan_work_dir_for_input
|
||||
|
||||
from PyQt5.QtWidgets import (
|
||||
QWidget, QVBoxLayout, QHBoxLayout, QGroupBox, QFormLayout,
|
||||
@ -268,7 +264,7 @@ class Step3Panel(QWidget):
|
||||
form_layout.addRow(row_layout)
|
||||
|
||||
def open_interactive_viewer(self):
|
||||
from src.gui.water_quality_gui import InteractiveViewerDialog
|
||||
from src.gui.components.chart_dialogs import InteractiveViewerDialog
|
||||
img_path = self.img_file.get_path()
|
||||
if not img_path or not os.path.isfile(img_path):
|
||||
QMessageBox.warning(self, "警告", "请先选择影像文件!")
|
||||
@ -381,7 +377,7 @@ class Step3Panel(QWidget):
|
||||
config['sugar_iter'] = self.sugar_iter.value() if self.sugar_iter.value() > 0 else None
|
||||
config['sugar_sigma'] = self._safe_float(self.sugar_sigma, 1.0)
|
||||
config['sugar_estimate_background'] = self.sugar_estimate_background.isChecked()
|
||||
config['sugar_glint_mask_method'] = self.sugar_glint_mask_method.currentData()
|
||||
config['sugar_glint_mask_method'] = self.sugar_glint_mask_method.currentText()
|
||||
config['sugar_termination_thresh'] = self._safe_float(self.sugar_termination_thresh, 20.0)
|
||||
try:
|
||||
import ast
|
||||
|
||||
Reference in New Issue
Block a user