Skip to content
Snippets Groups Projects
Commit 84a8dd3c authored by Patrick Godwin's avatar Patrick Godwin
Browse files

Merge branch 'mock_backend_broadcast' into 'main'

Ensure data array for mock data is consistent via broadcasting

See merge request ngdd/arrakis-server!27
parents 35c2ac99 f5bc2fbf
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,7 @@ class MockBackend(ServerBackend):
time_array = timestamp + numpy.arange(size) / rate
func = self._channel_func_map[channel]
data = numpy.array(
func(time_array),
numpy.broadcast_to(func(time_array), time_array.shape),
dtype=dtype,
)
channel_data.append(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment