Repository navigation
Conversation
Collaborator
Author
|
Hmm, the CI seems to be having trouble starting due to failure to install "libglapi-mesa." All I know is that's some graphics library. |
Member
|
I think the testing framework depends on an older OS image and I need to switch images for CI to work again. Chances are it'll be 3 lines of code after maybe an hour or two of study. ^_^ Nothing to do with the contents of the PR; it's broken for the other recent PRs too. |
ethanbb
commented
Nov 8, 2026
| return T.Compose(transforms) | ||
|
|
||
|
|
||
| def distance_masks(M_s:list, cm_s:list[list], max_dist: float, enclosed_thr:Optional[float] = None) -> list: |
Collaborator
Author
There was a problem hiding this comment.
Removed duplicated function; importing from caiman.base.rois instead
Merged
Member
|
I think if you rebase the tests will either run or fail in the correct way |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I am using the distance_masks and register_ROIs functions, and while I've always kept enclosed_thr as None, I just noticed that it seems to be broken in the following ways:
CaImAn/caiman/base/rois.py
Lines 781 to 783 in 240e1f2
gt_valis indexed byj, butjiterates over the test components, so it's meaningless as far as I can tell and may be out of boundsenclosed_thr.The feature is a bit weird, anyway - according to how I think it's supposed to work, the distance is allowed to be high if there is one pixel of ground truth outside of the test component, but as soon as it's fully enclosed it jumps to this threshold. We could fix it instead of removing it, but in all the examples it's just set to None, so I don't think it's worth keeping.
Type of change
Has your PR been tested?
caimanmanager testandcaimanmanager demotestboth pass for me on Linux.