Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/secop_ophyd/SECoPDevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@ async def stop(self, success=True):
"""
self._success = success

self.logger.info(f"Stopping {self.name} success={success}")

await self._secclient.exec_command(self._module, "stop")
self._stopped = True
if not success:
self.logger.info(f"Stopping {self.name} success={success}")
await self._secclient.exec_command(self._module, "stop")
self._stopped = True

async def locate(self) -> Location:
# return current location of the device (setpoint and readback).
Expand Down
2 changes: 1 addition & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def test_stop_cmd(cryo_sim, cryo_node_internal_loop: SECoPNodeDevice):

await stat

assert cryo._stopped is True
assert cryo._stopped is False

await cryo_node_internal_loop.disconnect_async()

Expand Down
Loading