Skip to content

Correct GUI initialization order of load_3D for modular usage. #1119

Merged
carsen-stringer merged 1 commit intoMouseLand:mainfrom
biswajitSM:main
Apr 7, 2025
Merged

Correct GUI initialization order of load_3D for modular usage. #1119
carsen-stringer merged 1 commit intoMouseLand:mainfrom
biswajitSM:main

Conversation

@biswajitSM
Copy link
Copy Markdown
Contributor

When gui.MainW is imported and used in another GUI application, it fails to initialize correctly. This PR addresses this by moving the self.load_3D = False initialization before io._load_image is called. This change resolves the issue without affecting standard Cellpose usage from the command line.

@carsen-stringer carsen-stringer merged commit 244deff into MouseLand:main Apr 7, 2025
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.

2 participants