Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

databroker-browser does not show plots for keithly2450 #1

Open
mrakitin opened this issue Jan 25, 2018 · 6 comments
Open

databroker-browser does not show plots for keithly2450 #1

mrakitin opened this issue Jan 25, 2018 · 6 comments
Assignees

Comments

@mrakitin
Copy link
Member

mrakitin commented Jan 25, 2018

I added databroker-browser code in 99-browser.py. When the data is displayed for keithly2450 detector/electrometer, the plot is not displayed & there are the following messages in the console:

In [1]: browse()
Out[1]: <databroker_browser.qt._core.BrowserWindow at 0x7fda04d63940>

In [2]: LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. wbs_hg
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. sample_x
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. sample_x
LivePlot did not get any data that corresponds to the y axis. keithly2450
LivePlot did not get any data that corresponds to the x axis. hfm_th
LivePlot did not get any data that corresponds to the y axis. keithly2450

smi_browser_keithly

@tacaswell, anything missing in hints?

@jrmlhermitte
Copy link

can you show what's in the descriptor? and perhaps try:

stream = db[uid].restream
next(stream)
next(stream)

and see the output of data_keys in the descriptor and data in the events?

I'm not the expert but it looks like it's not finding these keys.

@tacaswell
Copy link
Member

that is because the key it should be looking for is keithly2450_reading. The data-broker-browser code seems to be assuming that the interesting field will have the same name as the device.

We should look into using BEC in the browser.

@mrakitin
Copy link
Member Author

mrakitin commented Feb 2, 2018

This hopefully should be fixed by bluesky/bluesky#967 and NSLS-II/databroker-browser#11, but will probably be available in the next cycle.

@awalter-bnl
Copy link

@mrakitin and I tested this and ran into an issue with databroker_browser

We are leaving this open until we resolve that error, but it is not a quick fix and may or may not be solved by the upcoming update to databroker browser.

@mrakitin
Copy link
Member Author

mrakitin commented Apr 9, 2019

We tried to run the browse() with the latest conda env collection-2019-2.0-smi, and it fails with the error:

In [17]: browse()                                                                                                                              
QObject::connect: Cannot connect QListWidget::currentItemChanged(QListWidgetItem*,QListWidgetItem*) to (null)::_on_results_selection_changed()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~/.ipython/profile_collection/startup/users/30-user-Guillaume.py in <module>
----> 1 browse()

~/.ipython/profile_collection/startup/users/30-user-Guillaume.py in browse()
     28 
     29 def browse():
---> 30     return BrowserWindow(db, fig_dispatch, text_summary, search_result)
     31 

/opt/conda_envs/collection-2019-2.0-smi/lib/python3.6/site-packages/databroker_browser/qt/_core.py in __init__(self, db, fig_dispatch, text_dispatch, result_dispatch, max_results)
    424                  max_results=100):
    425         super().__init__(db, fig_dispatch, text_dispatch, result_dispatch,
--> 426                          max_results=max_results)
    427         self._window = QtWidgets.QMainWindow()
    428         self._window.setCentralWidget(self.widget)

/opt/conda_envs/collection-2019-2.0-smi/lib/python3.6/site-packages/databroker_browser/qt/_core.py in __init__(self, db, fig_dispatch, text_dispatch, result_dispatch, max_results)
    337         self._results = QtWidgets.QListWidget()
    338         self._results.currentItemChanged.connect(
--> 339             self._on_results_selection_changed)
    340         self._search_bar = QtWidgets.QLineEdit()
    341         self._search_bar.textChanged.connect(self._on_search_text_changed)

TypeError: connect() failed between currentItemChanged(QListWidgetItem*,QListWidgetItem*) and _on_results_selection_changed()

@danielballan
Copy link
Contributor

Althought databroker-browser is no longer a going concern, some of the relevant code lives on in bluesky-widgets, and we should be sure to test that it works as expected before closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants