fix: Исправлены относительные пути внутри проекта, src - Source Root
This commit is contained in:
parent
8426affee9
commit
f38ac86f4f
@ -1,4 +1,4 @@
|
||||
from src.OptAlgorithm.AutoConfigClass import AutoConfigClass
|
||||
from .AutoConfigClass import AutoConfigClass
|
||||
from numpy import sqrt
|
||||
|
||||
class ConstantCalculator(AutoConfigClass):
|
||||
|
@ -1,7 +1,7 @@
|
||||
from src.OptAlgorithm.PhaseCalc import PhaseCalc
|
||||
from src.OptAlgorithm.OptTimeCalculator import OptTimeCalculator
|
||||
from src.OptAlgorithm.AutoConfigClass import AutoConfigClass
|
||||
from src.OptAlgorithm.ConstantCalculator import ConstantCalculator
|
||||
from .PhaseCalc import PhaseCalc
|
||||
from .OptTimeCalculator import OptTimeCalculator
|
||||
from .AutoConfigClass import AutoConfigClass
|
||||
from .ConstantCalculator import ConstantCalculator
|
||||
|
||||
from numpy import cos, sin, sqrt, cbrt, arcsin
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
from numpy import sqrt, arcsin, arccos, cos, sin
|
||||
|
||||
from src.OptAlgorithm.AutoConfigClass import AutoConfigClass
|
||||
from src.OptAlgorithm.ConstantCalculator import ConstantCalculator
|
||||
from .AutoConfigClass import AutoConfigClass
|
||||
from .ConstantCalculator import ConstantCalculator
|
||||
|
||||
class OptTimeCalculator(AutoConfigClass):
|
||||
|
||||
|
@ -1,19 +1,19 @@
|
||||
import pyqtgraph as pg
|
||||
|
||||
from src.utils import read_json, DiagramParser
|
||||
from src.uml import Request, UMLCreator
|
||||
from src.OptAlgorithm import OptAlgorithm
|
||||
from src.gui import Plotter, settingsWindow
|
||||
from utils import read_json, DiagramParser
|
||||
from uml import Request, UMLCreator
|
||||
from OptAlgorithm import OptAlgorithm
|
||||
from gui import Plotter, settingsWindow
|
||||
|
||||
|
||||
class tabWidgetGenerator:
|
||||
def __init__(self, directory_to_save):
|
||||
self.UMLgenerator = Request(server_url='http://www.plantuml.com/plantuml/svg/')
|
||||
self.uml_creator = UMLCreator(request_generator=self.UMLgenerator, path_to_save=directory_to_save)
|
||||
self.operator_params = read_json("../params/operator_params.json")
|
||||
self.system_params = read_json("../params/system_params.json")
|
||||
self.operSettings = settingsWindow("../params/operator_params.json", 'Operator', self._update)
|
||||
self.sysSettings = settingsWindow("../params/system_params.json", 'System', self._update)
|
||||
self.operator_params = read_json("params/operator_params.json")
|
||||
self.system_params = read_json("params/system_params.json")
|
||||
self.operSettings = settingsWindow("params/operator_params.json", 'Operator', self._update)
|
||||
self.sysSettings = settingsWindow("params/system_params.json", 'System', self._update)
|
||||
|
||||
self.paths = []
|
||||
self.plotters = []
|
||||
|
@ -3,9 +3,9 @@ from pyqtgraph.Qt import QtWidgets
|
||||
from PyQt5.QtCore import Qt
|
||||
import numpy as np
|
||||
|
||||
from src.gui import qt_settings as qts
|
||||
from gui import qt_settings as qts
|
||||
|
||||
from src.OptAlgorithm import OptAlgorithm
|
||||
from OptAlgorithm import OptAlgorithm
|
||||
|
||||
|
||||
class Plotter:
|
||||
|
@ -2,8 +2,8 @@ import pyqtgraph as pg
|
||||
from pyqtgraph.Qt import QtWidgets
|
||||
from pyqtgraph.parametertree import Parameter, ParameterTree
|
||||
|
||||
from src.utils.json_tools import read_json, write_json
|
||||
from src.gui import qt_settings as qts
|
||||
from utils.json_tools import read_json, write_json
|
||||
from gui import qt_settings as qts
|
||||
|
||||
class settingsWindow(QtWidgets.QWidget):
|
||||
def __init__(self, path: str, name: str, upd_func):
|
||||
|
@ -11,12 +11,12 @@ from PyQt5.QtWidgets import (
|
||||
)
|
||||
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QObject, QFileSystemWatcher
|
||||
from PyQt5.QtGui import QIcon
|
||||
from src.gui import qt_settings as qts
|
||||
from gui import qt_settings as qts
|
||||
|
||||
# Импортируйте ваш класс `app` здесь
|
||||
# Предполагается, что класс `app` предоставляет интерфейс для отображения данных
|
||||
# Если `app` не предоставляет виджет, возможно, потребуется его модифицировать
|
||||
from src.gui.app import tabWidgetGenerator
|
||||
from gui.app import tabWidgetGenerator
|
||||
|
||||
|
||||
class DirectoryWatcher(QObject):
|
||||
@ -99,7 +99,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
|
||||
def main():
|
||||
directory_to_watch = "D:/downloads/a22"
|
||||
directory_to_watch = "trace_samples/"
|
||||
|
||||
if not os.path.isdir(directory_to_watch):
|
||||
print(f"Директория не найдена: {directory_to_watch}")
|
||||
|
@ -1,4 +1,4 @@
|
||||
from src.uml.request_generator import Request
|
||||
from uml.request_generator import Request
|
||||
|
||||
|
||||
class UMLCreator:
|
||||
|
Loading…
Reference in New Issue
Block a user