Skip to content

Commit f5f183b

Browse files
committed
Changed to trigger on lower position, rather than midpoint
1 parent e9387b5 commit f5f183b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ophyd_async/fastcs/panda/_trigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def prepare(self, value: ScanSpecInfo):
8888
rows += SeqTable.row(
8989
trigger=trig,
9090
position=int(
91-
chunk.midpoints[fast_axis][start]
91+
chunk.lower[fast_axis][start]
9292
/ await fast_axis.encoder_res.get_value()
9393
),
9494
)

tests/fastcs/panda/test_trigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def test_seq_scanspec_trigger_logic(mock_panda, sim_x_motor, sim_y_motor)
115115
SeqTrigger.IMMEDIATE,
116116
SeqTrigger.BITA_0,
117117
]
118-
assert (out.position == [0, 0, 50, 0, 0, 0, 250, 0, 0, 0, 50, 0, 0]).all()
118+
assert (out.position == [0, 0, 25, 0, 0, 0, 275, 0, 0, 0, 25, 0, 0]).all()
119119
assert (out.time1 == [0, 0, 0, 900000, 0, 0, 0, 900000, 0, 0, 0, 900000, 0]).all()
120120
assert (out.time2 == [0, 0, 0, 100000, 0, 0, 0, 100000, 0, 0, 0, 100000, 0]).all()
121121

0 commit comments

Comments
 (0)