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

ValueError when exporting masks to ImageJ ROIs [BUG] #913

Open
LenaGschossmann opened this issue Apr 10, 2024 · 0 comments
Open

ValueError when exporting masks to ImageJ ROIs [BUG] #913

LenaGschossmann opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LenaGschossmann
Copy link

When I try to save masks after manual refinement (addition/deletion of masks) of cyto3 segmentation results as an ImageJ ROI zip file, I get following error: "ValueError: zero-size array to reduction operation minimum which has no identity".

The traceback information is:
Traceback (most recent call last):
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\cellpose\gui\menus.py", line 63, in
parent.saveROIs.triggered.connect(lambda: io._save_rois(parent))
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\cellpose\gui\io.py", line 587, in _save_rois
save_rois(parent.cellpix[0], parent.filename)
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\cellpose\io.py", line 583, in save_rois
rois = [ImagejRoi.frompoints(outline) for outline in outlines]
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\cellpose\io.py", line 583, in
rois = [ImagejRoi.frompoints(outline) for outline in outlines]
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\roifile\roifile.py", line 455, in frompoints
left_top = coords.min(axis=0)
File "C:\Users\lenajg\AppData\Local\miniconda3\envs\cellpose\lib\site-packages\numpy\core_methods.py", line 45, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)

@LenaGschossmann LenaGschossmann added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant