Skip to content

Ensure initialized before synchronized block#33

Merged
alanocallaghan merged 2 commits intomainfrom
ensure-initialized
Apr 15, 2025
Merged

Ensure initialized before synchronized block#33
alanocallaghan merged 2 commits intomainfrom
ensure-initialized

Conversation

@alanocallaghan
Copy link
Contributor

This resolves an error in the bioimageio extension if a user declines to open the output in imagej before loading the pixel classifier, and leads to an exception when trying to preview the output (although creating objects proceeds as normal).

I think it might be better to ensure initalization elsewhere but given this is a simple null check if the model is initialized, it should be fine to put here...

@alanocallaghan alanocallaghan merged commit 3f5de8c into main Apr 15, 2025
1 check passed
@alanocallaghan alanocallaghan deleted the ensure-initialized branch April 15, 2025 13:47
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.

1 participant