lavue-org / lavue

Lightweight Live Viewer
GNU General Public License v2.0
8 stars 3 forks source link

Issue 726: fix setting zmq datasource in the auto datasource mode #727

Closed jkotan closed 1 year ago

jkotan commented 1 year ago

It resolves #726 by fixing setting zmq datasource in the auto datasource mode

jangarrevoet commented 1 year ago

It seems not to read the data properly now.

DEBUG: lavuelib.imageSource.ZMQSource.getData: returns (None, None, None)
DEBUG: lavuelib.imageSource.ZMQSource.getData: excecuted
DEBUG: lavuelib.imageSource.ZMQSource.__loads: excecuted  with ('\x80\x03}q\x00(X\x0b\x00\x00\x00datasourcesq\x01]q\x02(X&\x00\x00\x00/xrf/ardesia_01/roi/S-Ka/sorted/ch_sumq\x03X\'\x00\x00\x00/xrf/ardesia_01/roi/Ar-Ka/sorted/ch_sumq\x04X&\x00\x00\x00/xrf/ardesia_01/roi/K-Ka/sorted/ch_sumq\x05X\'\x00\x00\x00/xrf/ardesia_01/roi/Ca-Ka/sorted/ch_sumq\x06X\'\x00\x00\x00/xrf/ardesia_01/roi/Fe-Ka/sorted/ch_sumq\x07X\'\x00\x00\x00/xrf/ardesia_01/roi/Cu-Ka/sorted/ch_sumq\x08X\'\x00\x00\x00/xrf/ardesia_01/roi/Zn-Ka/sorted/ch_sumq\tX\'\x00\x00\x00/xrf/ardesia_01/roi/Se-Ka/sorted/ch_sumq\nX\'\x00\x00\x00/xrf/ardesia_01/roi/Ag-La/sorted/ch_sumq\x0bX\'\x00\x00\x00/xrf/ardesia_01/roi/Cd-La/sorted/ch_sumq\x0cX\'\x00\x00\x00/xrf/ardesia_01/roi/Au-La/sorted/ch_sumq\rX)\x00\x00\x00/xrf/ardesia_01/roi/Compton/sorted/ch_sumq\x0eX*\x00\x00\x00/xrf/ardesia_01/roi/Rayleigh/sorted/ch_sumq\x0fX%\x00\x00\x00/xrf/ardesia_01/roi/Sum/sorted/ch_sumq\x10X1\x00\x00\x00/xrf/ardesia_01/roi/S-Ka/normalised/sorted/ch_sumq\x11X2\x00\x00\x00/xrf/ardesia_01/roi/Ar-Ka/normalised/sorted/ch_sumq\x12X1\x00\x00\x00/xrf/ardesia_01/roi/K-Ka/normalised/sorted/ch_sumq\x13X2\x00\x00\x00/xrf/ardesia_01/roi/Ca-Ka/normalised/sorted/ch_sumq\x14X2\x00\x00\x00/xrf/ardesia_01/roi/Fe-Ka/normalised/sorted/ch_sumq\x15X2\x00\x00\x00/xrf/ardesia_01/roi/Cu-Ka/normalised/sorted/ch_sumq\x16X2\x00\x00\x00/xrf/ardesia_01/roi/Zn-Ka/normalised/sorted/ch_sumq\x17X2\x00\x00\x00/xrf/ardesia_01/roi/Se-Ka/normalised/sorted/ch_sumq\x18X2\x00\x00\x00/xrf/ardesia_01/roi/Ag-La/normalised/sorted/ch_sumq\x19X2\x00\x00\x00/xrf/ardesia_01/roi/Cd-La/normalised/sorted/ch_sumq\x1aX2\x00\x00\x00/xrf/ardesia_01/roi/Au-La/normalised/sorted/ch_sumq\x1bX4\x00\x00\x00/xrf/ardesia_01/roi/Compton/normalised/sorted/ch_sumq\x1cX5\x00\x00\x00/xrf/ardesia_01/roi/Rayleigh/normalised/sorted/ch_sumq\x1dX0\x00\x00\x00/xrf/ardesia_01/roi/Sum/normalised/sorted/ch_sumq\x1eeX\x05\x00\x00\x00dtypeq\x1fX\x07\x00\x00\x00float64q X\x05\x00\x00\x00shapeq!K/Kb\x86q"u.', None)
DEBUG: lavuelib.imageSource.ZMQSource.getData: returns ('No JSON object could be decoded', '__ERROR__', '')
DEBUG: lavuelib.liveViewer.LiveViewer._getNewData: excecuted  with (u'__ERROR__', u'')
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.tabCheckBoxStates: excecuted
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.tabCheckBoxStates: returns (2,)
DEBUG: lavuelib.liveViewer.LiveViewer.__getNewData 0: __ERROR__  , [, ]
DEBUG: lavuelib.liveViewer.PartialData.__init__: excecuted  with ('__ERROR__', 'No JSON object could be decoded', '', 0, 0, u'')
DEBUG: lavuelib.liveViewer.PartialData.__init__: returns
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.isConnected: excecuted
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.isConnected: returns True
DEBUG: lavuelib.liveViewer.PartialData.tolist: excecuted
DEBUG: lavuelib.liveViewer.PartialData.tolist: returns ['__ERROR__', 'No JSON object could be decoded', '', 0, 0, 1, 1, u'']
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.setErrorStatus: excecuted  with ('__ERROR__',)
DEBUG: lavuelib.sourceTabWidget.SourceForm.setErrorStatus: excecuted  with ('__ERROR__',)
DEBUG: lavuelib.sourceTabWidget.SourceForm.setErrorStatus: returns
DEBUG: lavuelib.sourceTabWidget.SourceTabWidget.setErrorStatus: returns
DEBUG: lavuelib.liveViewer.LiveViewer._getNewData: returns
DEBUG: lavuelib.imageSource.ZMQSource.getData: excecuted