Skip to content

Commit

Permalink
Merge pull request #169 from jonnymaserati/bugfix/connector_loop
Browse files Browse the repository at this point in the history
Squash connector bug
  • Loading branch information
jonnymaserati committed Dec 17, 2023
2 parents e4e82a0 + 3293091 commit c8b7ba8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions welleng/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,13 @@ def _target_pos_and_vec_defined(self, pos3, vec_old=[0., 0., 0.]):
+ args + (True,)
)
)
if abs(
self.dls - self.dls2
) < self.delta_dls:
if any((
abs(
self.dls - self.dls2
) < self.delta_dls,
np.allclose(self.pos1, self.pos2),
np.allclose(self.pos3, self.pos_target)
)):
break
self._happy_finish()
return
Expand Down
2 changes: 1 addition & 1 deletion welleng/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.7.5'
__version__ = '0.7.6'

0 comments on commit c8b7ba8

Please sign in to comment.