Closed eoinell closed 4 years ago
Versions for PyQt and pyqtgraph? (I assume this is Python 3 on Windows?)
There's also some changes to pyqtgraph in newer versions that mean the quickMinMax needs to be rewritten (I have the edits ready to push, but haven't yet since I'm not sure if people need the older pyqtgraph)
qt=5.12.5, pyqt=5.12.3, pyqtgraph=0.10.0
Yes, py3, win10.
We did the python3 update at the same time everyone upgraded to windows 10, I guess if people are still using older versions they're probably using the python2 branch
There's a new pyqtgraph (which is the one that changed the quickMinMax)
But that doesn't change the issue here (I've got qt=5.9.7 and pyqtgraph 0.11.0), which at least I've managed to reproduce. It feels like a pyqtgraph bug...
Agreed it's probably pyqtgraph, although what I don't understand is why it happens here, but not in Spectrometer's ImageView or Camera's.
I think the problem is that CameraPreviewWidget
is subclassing pygtgraph.GraphicsView
and DisplayWidgetRoiScale
is subclassing pygtgraph.ImageView
(that's the only difference I can see right now). And since then the code in the background is updating things and assuming they are the same type of object, I guess it's messing it up.
Although I'm not sure if that also explains your point about the spectrometer
If this is the problem, I see two possibilities to solve it:
CameraPreviewWidget
does with embedding an ImageItem
in a GraphicsView
In the end it was a signal and queuing problem
When using the Andor GUI the image viewbox turns black when the gui is resized, or when switching to FVB or another spectrum acquisition mode. This is reproducible in part with the DummyCameraRoiScale class in camera_scaled_roi, when resizing the image pops in and out of view.