BCDA-APS / gemviz

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

when plotting, update metadata from tiled if run is active #186

Open prjemian opened 11 months ago

prjemian commented 11 months ago

When fields are selected for plotting and the run is active (which means it is the last run in the database and the run had not stop document, meaning it was still measuring), then update the run's metadata from the tiled server.

Calling the run's .request_from_tiled_server() method will do the update and reset the additional structures to be refreshed from the tiled server.

prjemian commented 11 months ago

Logic for that activity would go here: https://github.com/BCDA-APS/gemviz/blob/b12db35beae14dfdc747d98f600e5d6f8f05bc25/gemviz/select_fields_tableview.py#L46

The code needs the RunMetadata object.