-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
86 lines (81 loc) · 2.58 KB
/
Copy path__init__.py
File metadata and controls
86 lines (81 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Author: Miguel Marina <karel.capek.robotics@gmail.com>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# Copyright (C) 2025 Capek System Safety & Robotic Solutions
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Expose AutoML application classes at the package root."""
import tkinter as tk
from tkinter import ttk, simpledialog, filedialog, scrolledtext
try: # pragma: no cover - optional heavy dependencies
from .mainappsrc.core.automl_core import (
AutoMLApp,
FaultTreeNode,
AutoML_Helper,
messagebox,
GATE_NODE_TYPES,
)
from .mainappsrc.safety_analysis import SafetyAnalysis_FTA_FMEA
if __package__ and __package__.startswith("AutoML"):
from AutoML.config.automl_constants import PMHF_TARGETS
else:
from config.automl_constants import PMHF_TARGETS
from analysis.models import HazopDoc
from gui.dialogs.edit_node_dialog import EditNodeDialog
from analysis.risk_assessment import AutoMLHelper
except Exception: # pragma: no cover - allow importing package without extras
AutoMLApp = FaultTreeNode = AutoML_Helper = messagebox = None
GATE_NODE_TYPES = SafetyAnalysis_FTA_FMEA = PMHF_TARGETS = None
HazopDoc = EditNodeDialog = AutoMLHelper = None
__all__ = []
else:
__all__ = [
"AutoMLApp",
"FaultTreeNode",
"AutoML_Helper",
"AutoMLHelper",
"messagebox",
"tk",
"ttk",
"simpledialog",
"filedialog",
"scrolledtext",
"GATE_NODE_TYPES",
"PMHF_TARGETS",
"HazopDoc",
"EditNodeDialog",
"SafetyAnalysis_FTA_FMEA",
]
from .AutoML import (
parse_args,
ensure_packages,
ensure_ghostscript,
install_best,
report_health,
model_loader,
manager_eater,
_bootstrap,
)
__all__.extend(
[
"parse_args",
"ensure_packages",
"ensure_ghostscript",
"install_best",
"report_health",
"model_loader",
"manager_eater",
"_bootstrap",
]
)