chore: modernize to new algorithm parameters API#9
Conversation
WalkthroughThis update makes minor refinements to type hints, imports, and variable naming within the segmentation module. Type hints are modernized, imports are adjusted for consistency, and some local variables are renamed to clarify their unused status. No logic, control flow, or public interface changes occur. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
src/PartSeg_smfish/segmentation.py (1)
442-445: Same Python-version concern as abovePlease harmonise this signature with the previous suggestion to avoid divergent hints and potential 3.9 breakage.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/PartSeg_smfish/segmentation.py(5 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
- GitHub Check: windows-latest py3.11
- GitHub Check: windows-latest py3.12
- GitHub Check: macos-latest py3.12
- GitHub Check: macos-latest py3.11
- GitHub Check: macos-latest py3.10
- GitHub Check: ubuntu-latest py3.12
- GitHub Check: ubuntu-latest py3.10
- GitHub Check: windows-latest py3.10
- GitHub Check: ubuntu-latest py3.11
🔇 Additional comments (3)
src/PartSeg_smfish/segmentation.py (3)
3-3: Import source modernised correctlyUsing
Callablefromcollections.abcis preferred sincetyping.Callableis deprecated in 3.12+. No issues spotted.
233-238: Good: unused-value made explicitRenaming the second return value to
_nucleus_thr_valquiets linters while still leaving a breadcrumb for future debugging—sensible choice.
276-281: Mirrors nucleus-mask change – looks fineSame pattern applied for molecule mask; change is consistent and correct.
Use new API to stop following warning:
Summary by CodeRabbit
No changes to app functionality or user experience.