R2:底板 / 刀片布局布线脚本、快照、截图与规划文档更新(含外壳、打印件、布线归档)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
这个提交包含在:
@@ -0,0 +1,9 @@
|
||||
import sys, json, re
|
||||
sys.argv.append('--pcb2'); sys.path.insert(0,'.')
|
||||
import drc_read as D
|
||||
for name, n in [('KEY_SRCLK',2),('KEY_RCLK',2),('VBUS2',2),('+3V3_HUB',2),('+5V',2)]:
|
||||
d = D.call(D.JS_DETAIL % json.dumps(u'%s (%s)' % (name, n), ensure_ascii=False))
|
||||
txt = d.get('detail','').split(u'input::-webkit')[0]
|
||||
rows = re.findall(r'(\d+)(间距错误|物理错误|制造错误|连接性错误)(.+?)(?=\d+(?:间距错误|物理错误|制造错误|连接性错误)|$)', txt)
|
||||
print(u'── %s ──' % name)
|
||||
for idx, kind, body in rows: print(u' %s. %s' % (idx, body.strip()[:200]))
|
||||
在新工单中引用
屏蔽一个用户