[AutoTool] fix exact s-bend validation
This commit is contained in:
parent
aa7007881f
commit
83ec64158a
2 changed files with 57 additions and 1 deletions
|
|
@ -1031,7 +1031,7 @@ class AutoTool(Tool, metaclass=ABCMeta):
|
|||
jog_remaining = jog - itrans_dxy[1] - otrans_dxy[1]
|
||||
if sbend.jog_range[0] <= jog_remaining < sbend.jog_range[1]:
|
||||
sbend_dxy = self._sbend2dxy(sbend, jog_remaining)
|
||||
success = numpy.isclose(length, sbend_dxy[0] + itrans_dxy[1] + otrans_dxy[1])
|
||||
success = numpy.isclose(length, sbend_dxy[0] + itrans_dxy[0] + otrans_dxy[0])
|
||||
if success:
|
||||
b_transition = None
|
||||
straight_length = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue