Skip to content

Implementing union operation for mask#181

Merged
JoOkuma merged 3 commits intoroyerlab:mainfrom
yfukai:mask_union_mask
Oct 24, 2025
Merged

Implementing union operation for mask#181
JoOkuma merged 3 commits intoroyerlab:mainfrom
yfukai:mask_union_mask

Conversation

@yfukai
Copy link
Copy Markdown
Contributor

@yfukai yfukai commented Oct 23, 2025

I think it's useful to have a union function mask = mask1 | mask2 for track editing. I hope this makes sense!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.09%. Comparing base (06d104e) to head (8c22e24).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   88.03%   88.09%   +0.06%     
==========================================
  Files          50       50              
  Lines        3444     3462      +18     
  Branches      596      597       +1     
==========================================
+ Hits         3032     3050      +18     
  Misses        248      248              
  Partials      164      164              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@JoOkuma JoOkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @yfukai, thanks for the PR I can imagine your use case.
I left a single comment regarding a sanity check.

-------
Mask
The union mask between the two masks.
"""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yfukai, could we do something if the masks have different ndim?
We could err or assume the missing dimensions are 1.
I'm leaning more towards error because I don't see any case where they would have different ndim on purpose.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think raising an error is a safer path!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the PR.

@JoOkuma JoOkuma merged commit 2d23a90 into royerlab:main Oct 24, 2025
7 checks passed
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.

3 participants