deepKernel 0.0.6__tar.gz → 0.0.7__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.7}/PKG-INFO +2 -2
- {deepkernel-0.0.6 → deepkernel-0.0.7}/README.md +1 -1
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/base.py +20 -1
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/output.py +30 -1
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel.egg-info/PKG-INFO +2 -2
- {deepkernel-0.0.6 → deepkernel-0.0.7}/setup.py +1 -1
- {deepkernel-0.0.6 → deepkernel-0.0.7}/LICENSE +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/__init__.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/configuration.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/deepline.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/information.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel/input.py +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel.egg-info/SOURCES.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel.egg-info/dependency_links.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/deepKernel.egg-info/top_level.txt +0 -0
- {deepkernel-0.0.6 → deepkernel-0.0.7}/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.7
|
|
4
4
|
Summary: A simple example package
|
|
5
5
|
Home-page: https://www.pzeda.com/CN
|
|
6
6
|
Author: pz
|
|
@@ -23,4 +23,4 @@ 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接口是否可用
|
|
@@ -139,4 +139,23 @@ 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))
|
|
@@ -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.7
|
|
4
4
|
Summary: A simple example package
|
|
5
5
|
Home-page: https://www.pzeda.com/CN
|
|
6
6
|
Author: pz
|
|
@@ -23,4 +23,4 @@ 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接口是否可用
|
|
@@ -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.7", # 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
|
|
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
|