-
Notifications
You must be signed in to change notification settings - Fork 12
Lock file maintenance #1899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Lock file maintenance #1899
Changes from all commits
b23716b
c48ddfe
e765bab
1de1dcf
9834eee
070e585
3f9f020
389f41b
c3e0eb2
0c5bd29
1cd141d
bd0dc88
2e10466
c91c0cf
af58a47
5d9cc39
7c9a505
78692fb
0d3344d
c2edebf
75b92a8
8997499
41aa1d8
5cfbb29
34b51e3
7ba8c48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,7 +151,7 @@ async def set(self, new_position: float, timeout=DEFAULT_TIMEOUT): | |
| timeout = await self.get_timeout() | ||
| LOGGER.info(f"Moving {self.name} to {new_position} with timeout = {timeout}") | ||
|
|
||
| await self.set_move.set(value=1, wait=True, timeout=timeout) | ||
| await self.set_move.set(value=1, timeout=timeout) | ||
| move_status = AsyncStatus( | ||
| wait_for_value(self.gate, UndulatorGateStatus.CLOSE, timeout=timeout) | ||
| ) | ||
|
|
@@ -397,10 +397,17 @@ async def set(self, id_motor_values: Apple2Val) -> None: | |
| LOGGER.info( | ||
| f"Moving {self.name} apple2 motors to {id_motor_values}, timeout = {timeout}" | ||
| ) | ||
| await asyncio.gather( | ||
| self.gap().set_move.set(value=1, wait=False, timeout=timeout), | ||
| self.phase().set_move.set(value=1, wait=False, timeout=timeout), | ||
| ) | ||
|
|
||
| async def initiate_moves(): | ||
| await asyncio.gather( | ||
| self.gap().set_move.set(value=1, timeout=timeout), | ||
| self.phase().set_move.set(value=1, timeout=timeout), | ||
| ) | ||
| LOGGER.info("Gap and phase set_move()s completed.") | ||
|
|
||
| # assign the task to prevent GC killing it | ||
| self._move_task = asyncio.create_task(initiate_moves()) | ||
|
Comment on lines
+401
to
+409
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Should: @Relm-Arrowny We need to change it so that we can use the latest
If we can definitely do this test next week then maybe we can wait until then to merge but we're now 2 |
||
|
|
||
| await wait_for_value( | ||
| self.gap().gate, UndulatorGateStatus.CLOSE, timeout=timeout | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should: As discussed, I think we could change the signal to be wait=False