Skip to content

Commit 000b705

Browse files
committed
pre-commit changes
1 parent 57d9f55 commit 000b705

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
In dond, only process get_after_set in the loop instances where the parameter is actually being set
1+
In dond, only process get_after_set in the loop instances where the parameter is actually being set

src/qcodes/dataset/dond/do_nd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def dond(
817817
time.sleep(set_event.delay)
818818
if set_event.get_after_set:
819819
set_event.new_value = set_event.parameter()
820-
820+
821821
results[set_event.parameter] = set_event.new_value
822822

823823
meas_value_pair = call_params_meas()

tests/dataset/dond/test_doNd.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,13 +1804,17 @@ def test_dond_get_after_set(_param_set, _param_set_2, _param) -> None:
18041804
assert c.get_count == 0
18051805
assert c.set_count == 0
18061806

1807-
dond(LinSweep(a, 0, 10, n_points, get_after_set=True), LinSweep(b, 0, 10, n_points, get_after_set=False), c)
1807+
dond(
1808+
LinSweep(a, 0, 10, n_points, get_after_set=True),
1809+
LinSweep(b, 0, 10, n_points, get_after_set=False),
1810+
c,
1811+
)
18081812

18091813
assert a.get_count == n_points
18101814
assert a.set_count == n_points
18111815
assert b.get_count == 0
1812-
assert b.set_count == n_points ** 2
1813-
assert c.get_count == n_points ** 2
1816+
assert b.set_count == n_points**2
1817+
assert c.get_count == n_points**2
18141818
assert c.set_count == 0
18151819

18161820

0 commit comments

Comments
 (0)