Open klab-buffalo opened 4 months ago
Thank you for your comment. We face the same issue in our lab, but only when setting the sparse mode option to zero. Since working in sparse mode reduces the number of detected ROIs, we would like to know how can we avoid this error ("cannot convert float infinity to integer") when sparse_mode=0.
Any idea would be very much appreciated.
Hmm could your diameter be set to zero? https://github.com/MouseLand/suite2p/blob/be8830d69ef46728d77e030aa80ed5b6ee7d1dfd/suite2p/detection/sourcery.py#L128
It was indeed zero. We thought that the anatomical parameters are not relevant since we don't use Cellpose. What are the units of the diameter? Is it in pixels?
Thank you very much for the quick response, Imri
On Thu, Apr 4, 2024 at 2:12 PM carsen-stringer @.***> wrote:
Hmm could your diameter be set to zero? https://github.com/MouseLand/suite2p/blob/be8830d69ef46728d77e030aa80ed5b6ee7d1dfd/suite2p/detection/sourcery.py#L128
— Reply to this email directly, view it on GitHub https://github.com/MouseLand/suite2p/issues/1090#issuecomment-2036875698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWKSFBMMHQWXLWVQF7ZMNJ3Y3UYSPAVCNFSM6AAAAABDKRFOYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWHA3TKNRZHA . You are receiving this because you commented.Message ID: @.***>
Oh yeah sorry the documentation is unclear here, it should be in pixel units. It is used for sourcery and for Cellpose (if you are in anatomical mode).
Describe the issue:
updated version (updated Feb 14, 2024), using GUI, during ROI detection there was an error. 'cannot convert float infinity to integer' Windows10![errorFeb14](https://github.com/MouseLand/suite2p/assets/10342874/7eca7a8f-e1e6-4b73-a260-7ff79dc67619)
Reproduce the code example:
Error message:
Version information:
suite2p v0.14.3
Context for the issue:
Necessary to use ROI detect in GUI