BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

Add refresh button to refresh the server #48

Closed rodolakis closed 1 year ago

prjemian commented 1 year ago

Instead of adding a button to the GUI, trigger a refresh from the filter panel by pressing [Enter] in any of the QLineEdit widgets. Like this:

        self.mainwindow.filter_panel.plan_name.returnPressed.connect(self.displayTable)
        self.mainwindow.filter_panel.scan_id.returnPressed.connect(self.displayTable)
        self.mainwindow.filter_panel.status.returnPressed.connect(self.displayTable)
        self.mainwindow.filter_panel.positioner.returnPressed.connect(self.displayTable)

which could be added after this line: https://github.com/BCDA-APS/tiled-viz2023/blob/7285cc3731f0a89126082e2637d1dca2754d7212/gemviz23/demo/resultwindow.py#L186

prjemian commented 1 year ago

The self.cat object knows its own name:

        print(f"Displaying catalog: {self.cat.item['id']!r}")
olliviergassant commented 1 year ago

Got this error message:

(base) [wow ~/Documents/tiled-viz2023] /home/beams/OGASSANT/.conda/envs/bluesky_2023_2/bin/python /home/beams/OGASSANT/Documents/tiled-viz2023/gemviz23/demo/app.py
catalogSelected: args = ('developer',)  kwargs = {}
Displaying catalog: developer
doPageSize value ='5'
doPager action ='pageSize', value ='5'
self.pageOffset() =0 self.pageSize() =5
Traceback (most recent call last):
  File "/home/beams0/OGASSANT/Documents/tiled-viz2023/gemviz23/demo/resultwindow.py", line 240, in displayTable
    self.cat = server[args[0]]
IndexError: tuple index out of range
Traceback (most recent call last):
  File "/home/beams0/OGASSANT/Documents/tiled-viz2023/gemviz23/demo/resultwindow.py", line 240, in displayTable
    self.cat = server[args[0]]
IndexError: tuple index out of range
prjemian commented 1 year ago

Request renewed in #93.