You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Notebook: a second folder scan after changing the folder shows nothing and lags (old results not cleared) #579
This came from the owner's Colab test of v0.9.0 (669a1f9) on 26 Nov 2026, inside the MorphoFeature end-to-end notebook (section 2, the PreprocessingNotebook app).
Steps
Enter an experiment folder and run the first folder scan. Results are shown.
Change the folder and scan again.
What happens
Nothing is displayed and the notebook lags. The new scan seems to start, but the previous results are not cleared and no progress is shown.
Expected
When the folder changes, or a new scan starts, clear everything derived from the old folder at once: the folder walk, the picture, the images list and any answers tied to that folder. Showing results from the old folder as if they were current must never happen. This is the same class of bug as the Cellpose preview fix (Cellpose Preview: show only this Preview's result, cleared before each run #576).
If a scan is still running when the folder changes, either stop it or ignore its results, so that a late result from the old folder can never be drawn.
Notes
Add a regression test that drives two scans of two different folders and checks that no widget or state from the first remains.
Owner decision (26 Nov): preprocessing must not start as soon as a folder path is typed or pasted. It waits until the user presses a button.
Editing a folder box (experiment, masks or output) only clears the results derived from the old value, as this issue asks, and shows "Press Open / Scan to continue".
The same applies in the end-to-end notebook. The audit found that restore there only fires when a box is edited, so the button makes both notebooks behave the same.
This replaces the current scan-on-edit behaviour, including the "scanned at once" step of the #566 Colab check.
Also from the owner's test (26 Nov): during the folder check the wait line shows "Comparing the images · 0:20 elapsed", and the timer stays stuck there.
From reading v0.9.0 without reproducing it: notebook_folder.check_progress maps the acquisitions phase to "Comparing the images" with no count and no steps reported. The folder check does not appear to run inside Wait.ticking() (which #567 added for Run), so the line keeps the time of its last redraw while the comparison runs.
Fix:
run the whole folder check inside Wait.ticking();
report n of N during the acquisitions comparison;
add a test that the elapsed time advances during an uncounted phase.
Activity
guijacquemet commentedon Nov 26, 2026
Owner decision (26 Nov): preprocessing must not start as soon as a folder path is typed or pasted. It waits until the user presses a button.
This replaces the current scan-on-edit behaviour, including the "scanned at once" step of the #566 Colab check.
Generated by Claude Code
guijacquemet commentedon Nov 26, 2026
Also from the owner's test (26 Nov): during the folder check the wait line shows "Comparing the images · 0:20 elapsed", and the timer stays stuck there.
From reading v0.9.0 without reproducing it:
notebook_folder.check_progressmaps theacquisitionsphase to "Comparing the images" with no count and no steps reported. The folder check does not appear to run insideWait.ticking()(which #567 added for Run), so the line keeps the time of its last redraw while the comparison runs.Fix:
Wait.ticking();Generated by Claude Code
Folders: scan and restore on the button press only, ticking check line (