Skip to content

Commit

Permalink
final updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gmegh committed Sep 16, 2024
1 parent c0e05ff commit f0a4b4c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_mtaosCscWithSimulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ async def test_stress_below_limit(self):
dof_aggr[11] = 1.0

await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)
updated_dof = await self.assert_next_sample(remote.evt_degreeOfFreedom)
updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)
# Assert the DOF didn't change
np.testing.assert_array_equal(updated_dof.aggregatedDoF, dof_aggr)

Expand Down Expand Up @@ -387,7 +389,9 @@ async def test_stress_above_limit_scale(self):
dof_aggr = np.zeros(50)
dof_aggr[15] = 100.0
await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)
updated_dof = await self.assert_next_sample(remote.evt_degreeOfFreedom)
updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)

self.assertEqual(
updated_dof.aggregatedDoF[15],
Expand Down Expand Up @@ -416,7 +420,9 @@ async def test_stress_above_limit_truncate(self):
dof_aggr[10:30] = 10.0

await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)
updated_dof = await self.assert_next_sample(remote.evt_degreeOfFreedom)
updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)

# Ensure that higher-order bending modes were set to 0
print(updated_dof.aggregatedDoF)
Expand Down

0 comments on commit f0a4b4c

Please sign in to comment.