microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
37 stars 27 forks source link

CameraDevice: wrong attribute access #764

Closed dstoychev closed 3 years ago

dstoychev commented 3 years ago

Commit 351d0907e800c7d027cbfea166fac311ab5d593d changed the MicroscopeCamera to have multiple handlers, but the CameraDevice class was not updated to match this. The finalizeInitialization method should have all of its self.handler instances changed to self.handler[0] instead:

https://github.com/MicronOxford/cockpit/blob/76827d89654fdefdcf27e8e9ebd68df843087127/cockpit/devices/camera.py#L90-L95

dstoychev commented 3 years ago

This was fixed in https://github.com/MicronOxford/cockpit/commit/4737358b6c33288c322fbec1645e7d99d9dd9de6.