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

WIP refactor state in singleton #3

Draft
wants to merge 3 commits into
base: embedding-widget
Choose a base branch
from

Conversation

constantinpape
Copy link
Collaborator

No description provided.

@pep8speaks
Copy link

pep8speaks commented Oct 23, 2023

Hello @constantinpape! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 9:80: E501 line too long (84 > 79 characters)

Line 4:80: E501 line too long (81 > 79 characters)

Comment last updated at 2023-10-25 08:06:55 UTC

from .annotator_tracking import annotator_tracking
from .image_series_annotator import image_folder_annotator, image_series_annotator
# from .annotator import annotator
# from .annotator_2d import annotator_2d
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these lines commented out?

This is what causedtest_gui.py to fail, since it used to do from micro_sam.sam_annotator import annotator_2d. I've changed the import in test_gui.py to now say from micro_sam.sam_annotator.annotator_2d import annotator_2d. So now it should pass, regardless of whatever you decide to do here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to comment these out locally in order to fix the vigra import issues.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to undo these changes. I assume these import errors are specific to my installation and I will look into this more closely at some later point (and first see if this still persists with a new environment.)

Copy link
Collaborator Author

@constantinpape constantinpape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify, I created this PR as a dirty proof of concept, so feel free to change whatever you need! (And maybe squash commits before merging ;))

@@ -0,0 +1,17 @@
import napari
from skimage.data import astronaut
from micro_sam.sam_annotator._state import SamState
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fyi, I have called this AnnotatorState in computational-cell-analytics#240 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants