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
35 stars 26 forks source link

config file has many camera views entries #867

Closed iandobbie closed 12 months ago

iandobbie commented 12 months ago

Looking at my config.py I have:

{'DIO_SETTINGS': None, 'DIOdev_SETTINGS': None, 'Dummy 405 power-lightPower': 0.01, 'Dummy 488 power-lightPower': 0.3, 'Dummy 633 power-lightPower': 0.01, 'Show Window ': True, 'Show Window Camera views': True, 'Show Window Camera views (0, 173): 18': True, 'Show Window Camera views (0, 322): 32': True, 'Show Window Camera views (0, 35): 37': True, 'Show Window Camera views (0, 393): 11': True, 'Show Window Camera views (1, 131): 45': False,

And so on for about 50 lines of Show Camera Views.

I think it is using the window title as the window "name" and the title bar can have coordinates and pixel values in it. Maybe we should put this data in the individual camera panels? Or just sanitise it before we store the name.

iandobbie commented 12 months ago

Fixed with a little code in commit 6b2033c39072cdb4cf7eb546b0c0c0e593039e5d