Compare commits
2 Commits
184168f623
...
4dc81bd9f7
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dc81bd9f7 | |||
| d3b83a7543 |
@ -506,7 +506,10 @@ class PortPather:
|
||||
return self
|
||||
|
||||
def path_from(self, *args, **kwargs) -> Self:
|
||||
thru = kwargs.pop('thru', None)
|
||||
self.pather.path_into(args[0], self.port, *args[1:], **kwargs)
|
||||
if thru is not None:
|
||||
self.rename_from(thru)
|
||||
return self
|
||||
|
||||
def mpath(self, *args, **kwargs) -> Self:
|
||||
|
||||
@ -623,6 +623,8 @@ class AutoTool(Tool, metaclass=ABCMeta):
|
||||
out_ptype_actual = out_transition.their_port.ptype
|
||||
elif ccw is not None:
|
||||
out_ptype_actual = bend.out_port.ptype
|
||||
elif not numpy.isclose(straight_length, 0):
|
||||
out_ptype_actual = straight.ptype
|
||||
else:
|
||||
out_ptype_actual = self.default_out_ptype
|
||||
|
||||
@ -768,6 +770,8 @@ class AutoTool(Tool, metaclass=ABCMeta):
|
||||
out_ptype_actual = out_transition.their_port.ptype
|
||||
elif not numpy.isclose(jog_remaining, 0):
|
||||
out_ptype_actual = sbend.ptype
|
||||
elif not numpy.isclose(straight_length, 0):
|
||||
out_ptype_actual = straight.ptype
|
||||
else:
|
||||
out_ptype_actual = self.default_out_ptype
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user