cleanup readme and example

This commit is contained in:
Jan Petykiewicz 2023-06-21 19:44:38 -07:00
commit afe3a3f129
2 changed files with 67 additions and 71 deletions

View file

@ -1,8 +1,6 @@
"""
Example code for checking connectivity in a layout by using
`snarled` and `masque`.
Example code for checking connectivity in a layout by using `snarled`
"""
from pprint import pformat
import logging
import snarled
@ -12,13 +10,14 @@ from snarled.types import layer_t
logging.basicConfig()
logging.getLogger('snarled').setLevel(logging.INFO)
# How are the conductors connected to each other?
connectivity = [
((1, 0), (1, 2), (2, 0)), # M1 to M2 (via V12)
((1, 0), (1, 3), (3, 0)), # M1 to M3 (via V13)
((2, 0), (2, 3), (3, 0)), # M2 to M3 (via V23)
]
# What labels should be loaded, and which geometry layers should they apply to?
labels_map: dict[layer_t, layer_t] = {
(1, 0): (1, 0),
(2, 0): (2, 0),