Skip to content

Commit f467048

Browse files
committed
f
1 parent edc820f commit f467048

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bec_ipython_client/tests/end-2-end/test_scans_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_fermat_scan(capsys, bec_ipython_client_fixture, scan_name):
6767
optim_trajectory="corridor",
6868
)
6969
if scan_name == "_v4_fermat_scan":
70-
# NOTE: v4 scan calculates the the angle more accurately, which results in a slightly different number of points
70+
# NOTE: v4 scan calculates the angle more accurately, which results in a slightly different number of points
7171
assert len(status.scan.live_data) == 400
7272
assert status.scan.num_points == 400
7373
else:

bec_server/bec_server/scan_server/scans/device_rpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def pre_scan(self):
114114
"""
115115
Pre-scan steps to be executed before the main scan logic.
116116
This is typically the last chance to prepare the devices before the core scan
117-
logic is executed. For example, this is a good place to initialize time-criticial
117+
logic is executed. For example, this is a good place to initialize time-critical
118118
devices, e.g. devices that have a short timeout.
119119
The pre-scan logic is typically implemented on the device itself.
120120
"""
@@ -129,7 +129,7 @@ def scan_core(self):
129129
self.device, self.func, self.rpc_id, *self.func_args, response=True, **self.func_kwargs
130130
)
131131
# We don't wait for the RPC to resolve
132-
self.actions._status_registry.pop(status._device_instr_id)
132+
self.actions._status_registry.pop(status._device_instr_id, None)
133133

134134
@scan_hook
135135
def at_each_point(self):

0 commit comments

Comments
 (0)