Skip to content

Commit

Permalink
flush degrees of freedom
Browse files Browse the repository at this point in the history
  • Loading branch information
gmegh committed Sep 16, 2024
1 parent f0a4b4c commit b075793
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_mtaosCscWithSimulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ async def test_stress_below_limit(self):
dof_aggr = np.zeros(50)
dof_aggr[11] = 1.0

remote.evt_degreeOfFreedom.flush()
await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)

updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)
Expand Down Expand Up @@ -388,7 +390,10 @@ async def test_stress_above_limit_scale(self):

dof_aggr = np.zeros(50)
dof_aggr[15] = 100.0

remote.evt_degreeOfFreedom.flush()
await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)

updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)
Expand Down Expand Up @@ -419,7 +424,9 @@ async def test_stress_above_limit_truncate(self):
dof_aggr = np.zeros(50)
dof_aggr[10:30] = 10.0

remote.evt_degreeOfFreedom.flush()
await remote.cmd_offsetDOF.set_start(value=dof_aggr, timeout=STD_TIMEOUT)

updated_dof = await self.assert_next_sample(
remote.evt_degreeOfFreedom, flush=False, timeout=STD_TIMEOUT
)
Expand Down

0 comments on commit b075793

Please sign in to comment.