Closed juliomateoslangerak closed 1 year ago
In the attached image you see the blue bar between the camera and the settings button in the Cameras section. This should come from the camera wavelength ( and should match the colour of the camera title bar in Camera Views menu. I will see if I can simulate enough to copy your setup and see if I can reproduce the issue here.
Another contribution might be the drawer code. Although this has been preserved we haven't used this functionality since the version running on the OMX v2 in Oxford.
Yes, that is what I'm missing. I used to have those bars. I still have it after removing filter wheel and drawer and adding wavelength to the cameras. I'll do further tests to see where the problem might come from
I just setup a test system with a couple of simulated cameras and the following config file and 2 simulated cameras on localhost copy of microscope.
[server] ipAddress: 127.0.0.1 port: 7700
[cam1] type: cockpit.devices.microscopeCamera.MicroscopeCamera uri: PYRO:TestCamera@127.0.0.1:8000 transform: (1, 1, 1)
[cam2] type: cockpit.devices.microscopeCamera.MicroscopeCamera uri: PYRO:TestCamera@127.0.0.1:8001 transform: (1, 1, 1)
[Drawer] type: cockpit.devices.drawer.Drawer cameras: cam1,cam2 default: cam1:525, cam2:600 far-red: cam1:525, cam2:488
This works fine on my Mac. I will try on the PC.
I didn't notice before but now I see that the light sources also don't have the correct colour bars. See image from my mac which has the camera colour bars but also the light sources all have colours as well.
Quick update seem that the wx.Control.SetBackgroundColour just doent do anything on windows. I wonder if we can fake it? Or if we have to write our own widget just to get this coloured line!
On the PC if you change from wx.Control to wx.StaticText(label="") it works.
This is fixed on mac and PC by the above change in my branch colour-bar-fix. Can someone test on a linux system?
I am just going to push this into master. I suspect it will just work on Linux as well. If not we can easily revert the changes.
Closing as fixed
I've been messing around with merges and changes in the depot files and I cannot get the wavelength colors to show up in the main window. I presume there is something wrong with my depot. The colors for the cameras are showing up correctly in the cameraview and for the lasers in the touchscreen. I presume it might have to do something with the ND filter wheel... or mayb ethe drawer... here is a fragemnt of my depot with the relevant devices Are
wavelength
and ordye
relevant as a camera properties?