AllenCell / AllenCell/allencell-segmenter-ml

Refactor prediction checklist to avoid thread interrupts

Offen
#218 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
5
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

From conversation with @hughes036

Right now, our prediction checklist widget starts up a channel extraction thread each time an image is unchecked. This is done to ensure that the number of channels in the dropdown corresponds with the number of channels in at least one of the selected images. When a user rapidly unchecks images, multiple extraction threads will be going at the same time. In order to guarantee that the most recently started thread (i.e. the one corresponding to the currently selected images in the UI) is the only thread that will have UI effects, we interrupt the existing threads (telling them not to have any UI effects).

It would be preferable if we could do this in a way that does not rely on thread interrupts, because this is the only place in the code so far that such a pattern is necessary.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.