Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add un-/re-do and save-/load-states for proofreading tool #323

Merged
merged 10 commits into from
Sep 19, 2024

Conversation

qin-yu
Copy link
Collaborator

@qin-yu qin-yu commented Sep 16, 2024

This PR add mechanisms to store snapshots during proofreading, fixes #244

image
Screenshot: New interface

  • "Undo" function and button
  • "Redo" function and button
  • Save progress to disk and load
  • Re-initialise with different segmentation/state file
  • Use different boundary images as reference for split/merge
  • Group buttons into a compact unit

Details

  • 10 snapshots are tracked by default, set PLANTSEG_MAX_UNDO_ACTIONS=30 to allow extra snapshots or PLANTSEG_MAX_UNDO_ACTIONS=3 to decrease memory usage.
  • Now "Re-initialise" will force reset and re-initialisation after a warning
  • Now the reference boundary image can be changed at each split/merge

image
Screenshot: Users are warned before destructive processes

@qin-yu qin-yu added enhancement New feature or request GUI Napari GUI related labels Sep 16, 2024
@qin-yu qin-yu self-assigned this Sep 16, 2024
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 33.08824% with 91 lines in your changes missing coverage. Please review.

Project coverage is 65.62%. Comparing base (022e03d) to head (8ac7db1).
Report is 12 commits behind head on plantsegv2.

Files with missing lines Patch % Lines
plantseg/viewer_napari/widgets/proofreading.py 32.08% 91 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           plantsegv2     #323      +/-   ##
==============================================
- Coverage       66.27%   65.62%   -0.65%     
==============================================
  Files              67       67              
  Lines            4587     4675      +88     
==============================================
+ Hits             3040     3068      +28     
- Misses           1547     1607      +60     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@qin-yu qin-yu changed the title Add "Undo" for proofreading tool Add un-/re-do and save-/load-states for proofreading tool Sep 19, 2024
@qin-yu qin-yu merged commit 2083be1 into plantsegv2 Sep 19, 2024
2 of 4 checks passed
@qin-yu qin-yu deleted the qy/plantsegv2-proofreading branch September 20, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GUI Napari GUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant