misc doc updates

This commit is contained in:
Jan Petykiewicz 2026-02-01 15:04:34 -08:00
commit d8702af5b9
6 changed files with 57 additions and 8 deletions

View file

@ -24,6 +24,7 @@ class Abstract(PortList):
When snapping a sub-component to an existing pattern, only the name (not contained
in a `Pattern` object) and port info is needed, and not the geometry itself.
"""
# Alternate design option: do we want to store a Ref instead of just a name? then we can translate/rotate/mirror...
__slots__ = ('name', '_ports')
name: str
@ -48,8 +49,6 @@ class Abstract(PortList):
self.name = name
self.ports = copy.deepcopy(ports)
# TODO do we want to store a Ref instead of just a name? then we can translate/rotate/mirror...
def __repr__(self) -> str:
s = f'<Abstract {self.name} ['
for name, port in self.ports.items():
@ -88,7 +87,7 @@ class Abstract(PortList):
def rotate_around(self, pivot: ArrayLike, rotation: float) -> Self:
"""
Rotate the Abstract around the a location.
Rotate the Abstract around a pivot point.
Args:
pivot: (x, y) location to rotate around