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

Catching empty segmentations (Exception) #36

Open
pr4deepr opened this issue Jul 11, 2024 · 0 comments
Open

Catching empty segmentations (Exception) #36

pr4deepr opened this issue Jul 11, 2024 · 0 comments

Comments

@pr4deepr
Copy link

Hi
If there are any errors with segmentation, on occasion, the code will run without any warnings or errors.
For example, if using vpt-plugin-cellpose2, I accidently used cellpose instead of cellpose2 in the config file.
The segmentation completed really quickly without any warnings or errors.
Having a look at the code, you could print a warning/error with more information out to the terminal/log file.

The issue is at this code block:

try:
m = import_module(".segment", package=package_name)
return getattr(m, "SegmentationMethod")
except Exception:
return EmptySegmentation()

Cheers
Pradeep

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

No branches or pull requests

1 participant