Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
The problem is with line 1518, where the frame buffer is cast to a numpy array. The shape of the array is supposed to be (height, width), so the dimensions need to be swapped like this:
This bug only affects circular buffer mode and only when a non-square ROI is used.
https://github.com/python-microscope/microscope/blob/ef280c3402606941d1427b72950b472feb2b6cae/microscope/cameras/pvcam.py#L1510-L1522
The problem is with line 1518, where the frame buffer is cast to a numpy array. The shape of the array is supposed to be
(height, width)
, so the dimensions need to be swapped like this: