Skip to content

Commit

Permalink
[bugfix] bit ordering in wireless daq causing vertical banding
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
sneakers-the-rat authored Nov 8, 2023
1 parent dcb88a3 commit d168e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miniscope_io/stream_daq.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def _format_frame(self, frame_buffer_queue, imagearray):
"uint:32",
[
pixel_vector[i : i + 32][::-1].uint
for i in range(0, len(pixel_vector), 32)
for i in reversed(range(0, len(pixel_vector), 32))
],
)
img = np.frombuffer(pixel_vector.tobytes(), dtype=np.uint8)
Expand Down

0 comments on commit d168e69

Please sign in to comment.