File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
styles/config/vocabularies/ANSYS Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Quick start
3434.. code-block :: python
3535
3636 import pyedb
37- from pyedb.workflows.drc.drc import DRC , Rules
37+ from pyedb.workflows.drc.drc import Drc , Rules
3838
3939 edb = pyedb.Edb(" my_board.aedb" )
4040 rules = (
@@ -46,7 +46,7 @@ Quick start
4646 .add_copper_balance(" top_bal" , max_percent = 10 , layers = [" TOP" ])
4747 )
4848
49- drc = DRC (edb)
49+ drc = Drc (edb)
5050 violations = drc.check(rules)
5151 drc.to_ipc356a(" fab_review.ipc" )
5252
@@ -92,9 +92,9 @@ DRC engine
9292 :toctree: generated/
9393 :nosignatures:
9494
95- DRC
96- DRC .check
97- DRC .to_ipc356a
95+ Drc
96+ Drc .check
97+ Drc .to_ipc356a
9898
9999Implementation notes
100100--------------------
@@ -111,7 +111,7 @@ Add a new rule in three steps:
111111
1121121. Create a Pydantic model inheriting from ``Pydantic.BaseModel ``.
1131132. Append the model to the ``Rules `` container and expose a fluent helper.
114- 3. Implement ``_rule_<field_name> `` inside ``DRC ``; accept the rule instance
114+ 3. Implement ``_rule_<field_name> `` inside ``Drc ``; accept the rule instance
115115 and append violations to ``self.violations ``.
116116
117117Examples
@@ -135,7 +135,7 @@ Export violations to CSV
135135
136136 import csv
137137
138- drc = DRC (edb)
138+ drc = Drc (edb)
139139 drc.check(rules)
140140
141141 with open (" violations.csv" , " w" , newline = " " ) as f:
Original file line number Diff line number Diff line change @@ -143,3 +143,4 @@ config
143143job_id
144144Cohn
145145Pydantic
146+ Drc
You can’t perform that action at this time.
0 commit comments