Skip to content

Commit

Permalink
Isolated error line with a try statement to make it run
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sasatani committed Jun 22, 2024
1 parent dcc433c commit 4698b2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miniscope_io/stream_daq.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,10 @@ def _format_frame(
if self.config.LSB:
frame_data = np.flip(frame_data)

frame = np.reshape(frame_data, (self.config.frame_width, self.config.frame_height))
try:
frame = np.reshape(frame_data, (self.config.frame_width, self.config.frame_height))
except:
self.logger.warning('frame size doesn\'t match.')

# if self.config.LSB:
# pixel_vector = Array(
Expand Down

0 comments on commit 4698b2e

Please sign in to comment.