-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: embedding-widget
Are you sure you want to change the base?
WIP refactor state in singleton #3
Conversation
Hello @constantinpape! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.)
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
No description provided.