cannect 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cannect-1.0.0/src/cannect.egg-info → cannect-1.0.2}/PKG-INFO +2 -2
- {cannect-1.0.0 → cannect-1.0.2}/pyproject.toml +2 -2
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/__init__.py +10 -9
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/config.py +3 -21
- cannect-1.0.2/src/cannect/core/ascet/__init__.py +7 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/ws.py +18 -14
- cannect-1.0.2/src/cannect/core/can/__init__.py +6 -0
- cannect-1.0.2/src/cannect/core/can/ascet/__init__.py +8 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/_db2elem.py +5 -2
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/comdef.py +5 -4
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/comrx.py +4 -3
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/diag.py +7 -6
- cannect-1.0.2/src/cannect/core/can/db/__init__.py +10 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/vcs.py +2 -1
- cannect-1.0.2/src/cannect/core/ir/__init__.py +6 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/ir.py +1 -1
- cannect-1.0.2/src/cannect/core/testcase/__init__.py +8 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/tools.py +2 -2
- {cannect-1.0.0 → cannect-1.0.2/src/cannect.egg-info}/PKG-INFO +2 -2
- cannect-1.0.0/src/cannect/core/ascet/__init__.py +0 -3
- cannect-1.0.0/src/cannect/core/can/__init__.py +0 -2
- cannect-1.0.0/src/cannect/core/can/ascet/__init__.py +0 -3
- cannect-1.0.0/src/cannect/core/can/db/__init__.py +0 -4
- cannect-1.0.0/src/cannect/core/ir/__init__.py +0 -2
- cannect-1.0.0/src/cannect/core/testcase/__init__.py +0 -3
- {cannect-1.0.0 → cannect-1.0.2}/LICENSE +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/README.md +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/setup.cfg +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/api/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/amd.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/formula.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/oid.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/_db2code.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/reader.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/schema.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/message.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/styles.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/wrapper.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/rule.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/asw2can.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/decode.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/diagnosis.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/encode.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/changehistory.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/delivereables.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/diff.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/sdd.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/mdf.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/subversion.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/plotter.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/style.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/testcase.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/unitcase.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/errors.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/candb.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/datadictionary.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/__init__.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/excel.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/logger.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/ppt.py +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/SOURCES.txt +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/dependency_links.txt +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/requires.txt +0 -0
- {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cannect
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL
|
|
5
|
-
Requires-Python: >=3.
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Requires-Dist: kaleido
|
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cannect"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.2"
|
|
8
8
|
description = "HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
12
|
"kaleido",
|
|
13
13
|
"lxml",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
__all__ = [
|
|
2
|
+
"env",
|
|
3
|
+
"mount",
|
|
2
4
|
|
|
3
5
|
# .core
|
|
4
6
|
"Ascet",
|
|
5
|
-
"AscetCAN",
|
|
6
|
-
"
|
|
7
|
-
"IR",
|
|
7
|
+
"AscetCAN", "DataBaseCAN",
|
|
8
|
+
"IntegrationRequest", "ChangeHistoryManager",
|
|
8
9
|
"Subversion",
|
|
10
|
+
"TestCase", "TestCasePlot", "TestCaseUnit",
|
|
9
11
|
|
|
10
12
|
# .utils
|
|
11
13
|
"ComExcel",
|
|
@@ -16,15 +18,14 @@ __all__ = [
|
|
|
16
18
|
"DataDictionary",
|
|
17
19
|
]
|
|
18
20
|
|
|
19
|
-
from cannect.config import mount
|
|
21
|
+
from cannect.config import env, mount
|
|
20
22
|
from cannect.core import ascet as Ascet
|
|
21
23
|
from cannect.core.can import AscetCAN, DataBaseCAN
|
|
24
|
+
from cannect.core.ir import IntegrationRequest, ChangeHistoryManager
|
|
22
25
|
from cannect.core.subversion import Subversion
|
|
23
|
-
from cannect.core.testcase import TestCase,
|
|
24
|
-
from cannect.core.ir import IR
|
|
25
|
-
from cannect.core.ir.changehistory import ChangeHistoryManager
|
|
26
|
-
|
|
26
|
+
from cannect.core.testcase import TestCase, TestCasePlot, TestCaseUnit
|
|
27
27
|
from cannect.schema import DataDictionary
|
|
28
|
-
|
|
29
28
|
from cannect.utils import ComExcel, Logger
|
|
30
29
|
from cannect.utils import tools as Tools
|
|
30
|
+
|
|
31
|
+
mount()
|
|
@@ -55,7 +55,7 @@ def mount(svn_path=None):
|
|
|
55
55
|
E.get('USERDOMAIN', '') == 'HKEFICO' and
|
|
56
56
|
E.get('USERDOMAIN_ROAMINGPROFILE', '') == 'HKEFICO'
|
|
57
57
|
):
|
|
58
|
-
raise PermissionError(f'USER: {
|
|
58
|
+
raise PermissionError(f'USER: {E.get("USERNAME")} NOT AUTHORIZED')
|
|
59
59
|
|
|
60
60
|
# 전역 환경 변수 설정
|
|
61
61
|
E.DOWNLOADS = E.USERPROFILE / 'Downloads'
|
|
@@ -65,7 +65,7 @@ def mount(svn_path=None):
|
|
|
65
65
|
E.SVN_CONF = svn_path / 'GSL_Build/1_AswCode_SVN/PostAppSW/0_XML/DEM_Rename'
|
|
66
66
|
E.SVN_HISTORY = svn_path / 'GSL_Release/4_SW변경이력'
|
|
67
67
|
E.SVN_IR = svn_path / 'GSL_Build/8_IntegrationRequest'
|
|
68
|
-
E.SVN_MODEL = svn_path / 'model
|
|
68
|
+
E.SVN_MODEL = svn_path / 'model'
|
|
69
69
|
E.SVN_UNECE = svn_path / 'Autron_CoWork/사이버보안/Module_Test_Results'
|
|
70
70
|
E.SVN_SDD = svn_path / 'GSL_Build/7_Notes'
|
|
71
71
|
for p in psutil.disk_partitions():
|
|
@@ -79,26 +79,8 @@ def mount(svn_path=None):
|
|
|
79
79
|
if key.startswith("SVN"):
|
|
80
80
|
if not path.exists():
|
|
81
81
|
raise InternalServerError(f"{{{path}}} NOT EXIST IN {E.COMPANY} SERVER")
|
|
82
|
-
|
|
83
|
-
# 접근 권한 2차 확인; SVN 권한 확인
|
|
84
|
-
for path in [
|
|
85
|
-
E.SVN_CAN,
|
|
86
|
-
E.SVN_CONF,
|
|
87
|
-
E.SVN_HISTORY,
|
|
88
|
-
E.SVN_IR,
|
|
89
|
-
E.SVN_MODEL,
|
|
90
|
-
E.SVN_UNECE,
|
|
91
|
-
E.SVN_SDD
|
|
92
|
-
]:
|
|
93
|
-
if not (path / ".svn").is_dir():
|
|
94
|
-
raise InternalServerError(f"{{{path}}} IS NOT LINKED TO SVN")
|
|
95
|
-
return
|
|
96
82
|
|
|
97
|
-
|
|
98
|
-
if E.USERNAME == '22011148':
|
|
99
|
-
mount(svn_path=Path(r"E:\SVN"))
|
|
100
|
-
else:
|
|
101
|
-
mount()
|
|
83
|
+
return
|
|
102
84
|
|
|
103
85
|
|
|
104
86
|
if __name__ == "__main__":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from cannect.core.ascet import AmdIO, AmdSC
|
|
1
|
+
from cannect.core.ascet.amd import AmdIO, AmdSC
|
|
2
2
|
from cannect.core.subversion import Subversion
|
|
3
3
|
from cannect.config import env
|
|
4
4
|
from cannect.errors import AscetWorspaceFormatError, AmdDuplicationError, AmdNotFoundError
|
|
@@ -12,19 +12,22 @@ class WorkspaceIO:
|
|
|
12
12
|
|
|
13
13
|
def __init__(self, path:str=""):
|
|
14
14
|
self.path = path = env.SVN_MODEL if not path else Path(path)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if
|
|
27
|
-
fdb = Path(path) /
|
|
15
|
+
if path != env.SVN_MODEL:
|
|
16
|
+
listdir = os.listdir(path)
|
|
17
|
+
if not "HNB_GASOLINE" in listdir:
|
|
18
|
+
raise AscetWorspaceFormatError('NO {HNB_GASOLINE} IN WORKSPACE DIRECTORY')
|
|
19
|
+
if not "HMC_ECU_Library" in listdir:
|
|
20
|
+
raise AscetWorspaceFormatError('NO {HMC_ECU_Library} IN WORKSPACE DIRECTORY')
|
|
21
|
+
|
|
22
|
+
if path == env.SVN_MODEL:
|
|
23
|
+
fdb = r'\\kefico\keti\ENT\SDT\SVN\model\.svn\wc.db'
|
|
24
|
+
else:
|
|
25
|
+
fdb = ''
|
|
26
|
+
if '.svn' in listdir:
|
|
27
|
+
fdb = Path(path) / '.svn/wc.db'
|
|
28
|
+
for f in listdir:
|
|
29
|
+
if f.endswith('.aws'):
|
|
30
|
+
fdb = Path(path) / f
|
|
28
31
|
|
|
29
32
|
if not fdb:
|
|
30
33
|
raise AscetWorspaceFormatError('NO .aws OR wc.db IN WORKSPACE DIRECTORY')
|
|
@@ -145,6 +148,7 @@ if __name__ == "__main__":
|
|
|
145
148
|
|
|
146
149
|
|
|
147
150
|
io = WorkspaceIO()
|
|
151
|
+
print(io.db)
|
|
148
152
|
print(io["CanHSFPCMD"])
|
|
149
153
|
# print(io.bcPath(33))
|
|
150
154
|
# print(io.bcTree(33))
|
|
@@ -13,8 +13,7 @@ from xml.etree.ElementTree import Element
|
|
|
13
13
|
import math
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
F =
|
|
17
|
-
|
|
16
|
+
F = None
|
|
18
17
|
def elementWrapper(**kwargs) -> DataDictionary:
|
|
19
18
|
return DataDictionary(
|
|
20
19
|
kwargs=DataDictionary(**kwargs),
|
|
@@ -71,6 +70,10 @@ def crcClassElement(n:Union[int, str], oid_tag:Optional[Dict[str, str]]=None) ->
|
|
|
71
70
|
|
|
72
71
|
|
|
73
72
|
def SignalElement(signal:CanSignal, oid_tag:Optional[Dict[str, str]]=None) -> DataDictionary:
|
|
73
|
+
global F
|
|
74
|
+
if F is None:
|
|
75
|
+
F = formula_dictionary(env.SVN_CAN / "CAN_Model/Formula/HNB_I4GDI_I4MPI.xml")
|
|
76
|
+
|
|
74
77
|
if not oid_tag:
|
|
75
78
|
oid_tag = {}
|
|
76
79
|
kwargs = DataDictionary()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from cannect.config import env
|
|
2
2
|
from cannect.core.ascet.amd import Amd
|
|
3
|
+
from cannect.core.ascet.ws import WorkspaceIO
|
|
3
4
|
from cannect.core.can.ascet import _db2code, _db2elem
|
|
4
5
|
from cannect.core.can.db.reader import CANDBReader
|
|
5
6
|
from cannect.schema.datadictionary import DataDictionary
|
|
@@ -31,7 +32,7 @@ class ComDef:
|
|
|
31
32
|
name = os.path.basename(base_model).split(".")[0]
|
|
32
33
|
else:
|
|
33
34
|
name = f"ComDef{'_HEV' if engine_spec == 'HEV' else ''}"
|
|
34
|
-
base_model =
|
|
35
|
+
base_model = WorkspaceIO()[name]
|
|
35
36
|
|
|
36
37
|
# 공용 속성 생성
|
|
37
38
|
self.db = db
|
|
@@ -76,7 +77,7 @@ class ComDef:
|
|
|
76
77
|
logger.end(">>> Defining Signal Elements...")
|
|
77
78
|
return
|
|
78
79
|
|
|
79
|
-
def
|
|
80
|
+
def generate(self):
|
|
80
81
|
self.main.find('Component/Comment').text = _db2code.INFO(self.db.revision)
|
|
81
82
|
self.define_elements('MethodSignature')
|
|
82
83
|
self.define_elements('Element')
|
|
@@ -245,7 +246,7 @@ if __name__ == "__main__":
|
|
|
245
246
|
# # base_model=r'D:\SVN\model\ascet\trunk\HNB_GASOLINE\_29_CommunicationVehicle\StandardDB\NetworkDefinition\ComDef\ComDef-22368\ComDef.main.amd'
|
|
246
247
|
# # base_model=ENV['ASCET_EXPORT_PATH']
|
|
247
248
|
# )
|
|
248
|
-
# model.
|
|
249
|
+
# model.generate()
|
|
249
250
|
|
|
250
251
|
model = ComDef(
|
|
251
252
|
db=db,
|
|
@@ -253,4 +254,4 @@ if __name__ == "__main__":
|
|
|
253
254
|
exclude_tsw=True,
|
|
254
255
|
# base_model=env.ASCET / f"Export/ComDef_G/ComDef_G.main.amd"
|
|
255
256
|
)
|
|
256
|
-
model.
|
|
257
|
+
model.generate()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from cannect.config import env
|
|
2
2
|
from cannect.core.ascet.amd import Amd
|
|
3
|
+
from cannect.core.ascet.ws import WorkspaceIO
|
|
3
4
|
from cannect.core.can.ascet._db2code import MessageCode
|
|
4
5
|
from cannect.core.can.db.reader import CANDBReader
|
|
5
6
|
from cannect.utils.logger import Logger
|
|
@@ -29,7 +30,7 @@ class ComRx:
|
|
|
29
30
|
name = os.path.basename(base_model).split(".")[0]
|
|
30
31
|
else:
|
|
31
32
|
name = f"ComRx{'_HEV' if engine_spec == 'HEV' else ''}"
|
|
32
|
-
base_model =
|
|
33
|
+
base_model = WorkspaceIO()[name]
|
|
33
34
|
host = name.replace("Rx", "Def")
|
|
34
35
|
|
|
35
36
|
# 공용 속성 생성
|
|
@@ -99,7 +100,7 @@ class ComRx:
|
|
|
99
100
|
method.find('CodeBlock').text = curr.get(name, "")
|
|
100
101
|
return
|
|
101
102
|
|
|
102
|
-
def
|
|
103
|
+
def generate(self):
|
|
103
104
|
self.main.export_to_downloads()
|
|
104
105
|
self.impl.export_to_downloads()
|
|
105
106
|
self.data.export_to_downloads()
|
|
@@ -136,4 +137,4 @@ if __name__ == "__main__":
|
|
|
136
137
|
# base_model="",
|
|
137
138
|
# base_model=env.ASCET / f"Export/ComRx_G/ComRx_G.main.amd"
|
|
138
139
|
)
|
|
139
|
-
model.
|
|
140
|
+
model.generate()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from cannect.config import env
|
|
2
2
|
from cannect.core.ascet.amd import Amd
|
|
3
3
|
from cannect.core.ascet.oid import generateOID
|
|
4
|
+
from cannect.core.ascet.ws import WorkspaceIO
|
|
4
5
|
from cannect.core.can.db.reader import CANDBReader
|
|
5
6
|
from cannect.core.can.ascet._db2code import INFO
|
|
6
7
|
from cannect.core.can.rule import naming
|
|
@@ -25,7 +26,7 @@ class CANDiag(Amd):
|
|
|
25
26
|
template = env.SVN_CAN / "CAN_Model/_29_CommunicationVehicle/StandardDB/StandardTemplate/CANDiagTmplt/CANDiagTmplt.main.amd"
|
|
26
27
|
super().__init__(str(template))
|
|
27
28
|
|
|
28
|
-
self.
|
|
29
|
+
self.ws = WorkspaceIO()
|
|
29
30
|
|
|
30
31
|
# LOGGER 생성
|
|
31
32
|
base = Amd(src)
|
|
@@ -481,9 +482,9 @@ CHANNEL : {db[f'{self.hw} Channel']}-CAN
|
|
|
481
482
|
return
|
|
482
483
|
|
|
483
484
|
def copy_dsm(self):
|
|
484
|
-
fid_md = Amd(
|
|
485
|
+
fid_md = Amd(self.ws["Fid_Typ.zip"])
|
|
485
486
|
fid = fid_md.impl.dataframe("ImplementationSet", depth="shallow").set_index("name")["OID"]
|
|
486
|
-
deve_md = Amd(
|
|
487
|
+
deve_md = Amd(self.ws["DEve_Typ.zip"])
|
|
487
488
|
deve = deve_md.impl.dataframe("ImplementationSet", depth="shallow").set_index("name")["OID"]
|
|
488
489
|
|
|
489
490
|
for elem in self.impl.iter('ElementImplementation'):
|
|
@@ -587,7 +588,7 @@ CHANNEL : {db[f'{self.hw} Channel']}-CAN
|
|
|
587
588
|
self.logger(f'>>> ... NO EXCEPTION FOUND')
|
|
588
589
|
return
|
|
589
590
|
|
|
590
|
-
def
|
|
591
|
+
def generate(self, path:str=''):
|
|
591
592
|
|
|
592
593
|
# BASE 모델의 기본 정보들을 CANDiag으로 복사
|
|
593
594
|
self.logger('>>> COPY BASE MODEL TO TEMPLATE')
|
|
@@ -684,8 +685,8 @@ if __name__ == "__main__":
|
|
|
684
685
|
proj = WorkspaceIO()
|
|
685
686
|
data = CANDBReader().to_developer_mode("HEV")
|
|
686
687
|
|
|
687
|
-
template = CANDiag(data, proj["
|
|
688
|
-
template.
|
|
688
|
+
template = CANDiag(data, proj["CanFDMCUD_HEV"], "MCU_01_P_10ms", "MCU_01_H_10ms", "MCU_02_P_10ms", "MCU_02_H_10ms", "MCU_03_100ms")
|
|
689
|
+
template.generate()
|
|
689
690
|
|
|
690
691
|
|
|
691
692
|
|
|
@@ -3,6 +3,7 @@ from cannect.core.can.db.schema import standardize
|
|
|
3
3
|
from cannect.core.subversion import Subversion
|
|
4
4
|
from cannect.errors import CANDBError
|
|
5
5
|
from cannect.utils.excel import ComExcel
|
|
6
|
+
from cannect.utils.tools import path_abbreviate
|
|
6
7
|
|
|
7
8
|
from datetime import datetime
|
|
8
9
|
from pandas import DataFrame
|
|
@@ -86,7 +87,7 @@ class CANDBVcs:
|
|
|
86
87
|
source.to_json(jsonpath, orient='index')
|
|
87
88
|
if not self.silence:
|
|
88
89
|
self.logger("Manually Updated CAN DB from clipboard.")
|
|
89
|
-
self.logger(f"- Saved as : {jsonpath}")
|
|
90
|
+
self.logger(f"- Saved as : {path_abbreviate(jsonpath)}")
|
|
90
91
|
return
|
|
91
92
|
|
|
92
93
|
# def commit_json(self):
|
|
@@ -355,7 +355,7 @@ class IntegrationRequest:
|
|
|
355
355
|
for n, row in enumerate(self):
|
|
356
356
|
self.logger.hold(f">>> %{row['FunctionName']: <{self._space}} ")
|
|
357
357
|
if col == '' or col == 'SCMName':
|
|
358
|
-
self.table.loc[n, 'SCMRev'] = _get_log(env.SVN_MODEL / f'{row["SCMName"]}.zip')
|
|
358
|
+
self.table.loc[n, 'SCMRev'] = _get_log(env.SVN_MODEL / f'ascet/trunk/{row["SCMName"]}.zip')
|
|
359
359
|
if col == '' or col == 'DSMName':
|
|
360
360
|
if pd.isna(row["DSMName"]) or (row["DSMName"] == ''):
|
|
361
361
|
self.logger.hold(f'|{" " * (self._space + 13 + 11)}')
|
|
@@ -18,8 +18,8 @@ def unzip(src: Union[str, Path], to: Union[str, Path] = "") -> bool:
|
|
|
18
18
|
os.makedirs(to, exist_ok=True)
|
|
19
19
|
|
|
20
20
|
src = str(src)
|
|
21
|
-
if not os.path.isfile(src):
|
|
22
|
-
|
|
21
|
+
# if not os.path.isfile(src):
|
|
22
|
+
# raise KeyError(f"src: {src}는 경로가 포함된 파일(Full-Directory)이어야 합니다.")
|
|
23
23
|
if src.endswith('.zip'):
|
|
24
24
|
zip_obj = zipfile.ZipFile(src)
|
|
25
25
|
zip_obj.extractall(to)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cannect
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL
|
|
5
|
-
Requires-Python: >=3.
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Requires-Dist: kaleido
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|