mlexchange / mlex_highres_segmentation

A Dash interface for ML-based segmentation of user-annotated large multi-dimensional image data
Other
5 stars 4 forks source link

Better notification of dataset availability #162

Closed dylanmcreynolds closed 8 months ago

dylanmcreynolds commented 8 months ago

Right now, when tiled knows about a dataset, the user has to refresh the segmentation app to know about it. The user can refresh the browser, but then they loose their current masks.

In the short term, we would like to add a data refresh button to the application, so that it asks tiled for its list of data sets so that the whole browser does not have to refresh.

In the long term, we should think about a notification process where the reconstruction code can notify everyone that a dataset is available. This is where a tool like kafka might be very useful.

zhuowenzhao commented 8 months ago

I have wrapped all data util functions into a class object. I added a refresh button next to the dataset dropdown window to update datasets in the object after tiled server is updated. See https://github.com/mlexchange/mlex_highres_segmentation/pull/166.