deepKernel 0.0.6__tar.gz → 0.0.8__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.
- {deepkernel-0.0.6 → deepkernel-0.0.8}/PKG-INFO +4 -2
- deepkernel-0.0.8/README.md +5 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/base.py +31 -1
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/information.py +20 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/output.py +30 -1
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel.egg-info/PKG-INFO +4 -2
- {deepkernel-0.0.6 → deepkernel-0.0.8}/setup.py +1 -1
- deepkernel-0.0.6/README.md +0 -3
- {deepkernel-0.0.6 → deepkernel-0.0.8}/LICENSE +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/__init__.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/configuration.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/deepline.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel/input.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel.egg-info/SOURCES.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel.egg-info/dependency_links.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/deepKernel.egg-info/top_level.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.8}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepKernel
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: A simple example package
|
|
5
5
|
Home-page: https://www.pzeda.com/CN
|
|
6
6
|
Author: pz
|
|
@@ -23,4 +23,6 @@ Dynamic: summary
|
|
|
23
23
|
|
|
24
24
|
20250926 0.0.5 正式第一版,主要使用configuration.init、input.open_job、information.get_profile_box以测试SDK包是否可用
|
|
25
25
|
|
|
26
|
-
20250928 0.0.
|
|
26
|
+
20250928 0.0.7 正式第二版,主要加入output模块用以测试导出Gerber/ODBPP接口是否可用,验证导出目前不可使用
|
|
27
|
+
|
|
28
|
+
20250929 0.0.8 正式第三版,加入information模块中加入get_layer_feature_count与get_all_features_info为在无法导出时测试验证导入的正确性、在导入后获取信息
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
20250926 0.0.5 正式第一版,主要使用configuration.init、input.open_job、information.get_profile_box以测试SDK包是否可用
|
|
2
|
+
|
|
3
|
+
20250928 0.0.7 正式第二版,主要加入output模块用以测试导出Gerber/ODBPP接口是否可用,验证导出目前不可使用
|
|
4
|
+
|
|
5
|
+
20250929 0.0.8 正式第三版,加入information模块中加入get_layer_feature_count与get_all_features_info为在无法导出时测试验证导入的正确性、在导入后获取信息
|
|
@@ -139,4 +139,34 @@ def save_job_as(job, path):
|
|
|
139
139
|
js = json.dumps(data)
|
|
140
140
|
#print(js)
|
|
141
141
|
ret = deepline.process(json.dumps(data))
|
|
142
|
-
return ret
|
|
142
|
+
return ret
|
|
143
|
+
|
|
144
|
+
def save_png(job,step,layers,xmin,ymin,xmax,ymax,picpath,picname,backcolor,layercolors):
|
|
145
|
+
data = {
|
|
146
|
+
"func": "OUTPUT_FIXED_PICTURE",
|
|
147
|
+
"paras": {
|
|
148
|
+
"job": job,
|
|
149
|
+
"step":step,
|
|
150
|
+
"layers":layers,
|
|
151
|
+
"xmin":xmin,
|
|
152
|
+
"ymin":ymin,
|
|
153
|
+
"xmax": xmax,
|
|
154
|
+
"ymax":ymax,
|
|
155
|
+
"picpath":picpath,
|
|
156
|
+
"picname":picname,
|
|
157
|
+
"backcolor": backcolor,
|
|
158
|
+
"layercolors":layercolors
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return deepline.process(json.dumps(data))
|
|
162
|
+
|
|
163
|
+
def get_all_feature_info(job, step, layer,featuretype=127):
|
|
164
|
+
data = {
|
|
165
|
+
'func': 'GET_ALL_FEATURE_INFO',
|
|
166
|
+
'paras': {'job': job,
|
|
167
|
+
'step': step,
|
|
168
|
+
'layer': layer,
|
|
169
|
+
'featureType':featuretype
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return deepline.process(json.dumps(data))
|
|
@@ -101,4 +101,24 @@ def get_layers(job:str)->list:
|
|
|
101
101
|
return layer_list
|
|
102
102
|
except Exception as e:
|
|
103
103
|
print(e)
|
|
104
|
+
return []
|
|
105
|
+
|
|
106
|
+
def get_layer_feature_count(job:str, step:str, layer:str)->int:
|
|
107
|
+
try:
|
|
108
|
+
ret = base.get_layer_feature_count(job, step, layer)
|
|
109
|
+
ret = json.loads(ret)
|
|
110
|
+
if 'featureNum' in ret:
|
|
111
|
+
return int(ret['featureNum'])
|
|
112
|
+
return -1
|
|
113
|
+
except Exception as e:
|
|
114
|
+
print(e)
|
|
115
|
+
return -1
|
|
116
|
+
|
|
117
|
+
def get_all_features_info(job:str ,step:str, layer:str)->list:
|
|
118
|
+
try:
|
|
119
|
+
ret = base.get_all_feature_info(job,step,layer,127)
|
|
120
|
+
ret = json.loads(ret)['paras']
|
|
121
|
+
return ret
|
|
122
|
+
except Exception as e:
|
|
123
|
+
print(e)
|
|
104
124
|
return []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import json
|
|
1
|
+
import json,os
|
|
2
2
|
from deepKernel import base,information
|
|
3
3
|
|
|
4
4
|
def save_gerber( job:str, step:str, layer:str, filename:str, resize:int=0, angle:float=0,
|
|
@@ -53,3 +53,32 @@ def save_job(job:str,path:str)->bool:
|
|
|
53
53
|
print(e)
|
|
54
54
|
return False
|
|
55
55
|
|
|
56
|
+
def save_png(job:str, step:str, layers:list, xmin:int, ymin:int, xmax:int, ymax:int, picpath:str, backcolor:list, layercolors:list)->bool:
|
|
57
|
+
try:
|
|
58
|
+
(picpath,picname) = os.path.split(picpath)
|
|
59
|
+
layer_sum = len(layers)
|
|
60
|
+
color_sum = len(layercolors)
|
|
61
|
+
back_sum = len(backcolor)
|
|
62
|
+
b = True
|
|
63
|
+
if back_sum != 4:
|
|
64
|
+
b = False
|
|
65
|
+
else:
|
|
66
|
+
if layer_sum != color_sum:
|
|
67
|
+
b = False
|
|
68
|
+
else:
|
|
69
|
+
for i in range(0,color_sum):
|
|
70
|
+
color = layercolors[i]
|
|
71
|
+
if len(color) != 4:
|
|
72
|
+
b = False
|
|
73
|
+
break
|
|
74
|
+
if b == True:
|
|
75
|
+
_ret = base.save_png(job,step,layers,xmin,ymin,xmax,ymax,picpath,picname,backcolor,layercolors)
|
|
76
|
+
ret = json.loads(_ret)['status']
|
|
77
|
+
if ret == 'true':
|
|
78
|
+
ret = True
|
|
79
|
+
else:
|
|
80
|
+
ret = False
|
|
81
|
+
return ret
|
|
82
|
+
except Exception as e:
|
|
83
|
+
print(e)
|
|
84
|
+
return False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepKernel
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: A simple example package
|
|
5
5
|
Home-page: https://www.pzeda.com/CN
|
|
6
6
|
Author: pz
|
|
@@ -23,4 +23,6 @@ Dynamic: summary
|
|
|
23
23
|
|
|
24
24
|
20250926 0.0.5 正式第一版,主要使用configuration.init、input.open_job、information.get_profile_box以测试SDK包是否可用
|
|
25
25
|
|
|
26
|
-
20250928 0.0.
|
|
26
|
+
20250928 0.0.7 正式第二版,主要加入output模块用以测试导出Gerber/ODBPP接口是否可用,验证导出目前不可使用
|
|
27
|
+
|
|
28
|
+
20250929 0.0.8 正式第三版,加入information模块中加入get_layer_feature_count与get_all_features_info为在无法导出时测试验证导入的正确性、在导入后获取信息
|
|
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
6
6
|
|
|
7
7
|
setuptools.setup(
|
|
8
8
|
name="deepKernel", # Replace with your desired PyPI package name (must be unique)
|
|
9
|
-
version="0.0.
|
|
9
|
+
version="0.0.8", # Initial version number
|
|
10
10
|
author="pz", # Replace with your name
|
|
11
11
|
author_email="meichiyuan@pzeda.com", # Replace with your email
|
|
12
12
|
description="A simple example package", # Short description
|
deepkernel-0.0.6/README.md
DELETED
|
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
|