-
Notifications
You must be signed in to change notification settings - Fork 11
chore: Switch to get_qapp
from get_app
to handle napari deprecation
#1249
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
Conversation
Reviewer's Guide by SourceryThis pull request addresses the deprecation of Sequence diagram for napari application initializationsequenceDiagram
participant PartSeg
participant napari.qt
PartSeg->>napari.qt: try: get_qapp()
alt napari >= 0.5.4
napari.qt-->>PartSeg: Returns QApplication instance
else napari < 0.5.4
PartSeg->>napari.qt: except ImportError: get_app()
napari.qt-->>PartSeg: Returns QApplication instance
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
WalkthroughThis change updates the application initialization in the launcher. The Changes
Sequence Diagram(s)sequenceDiagram
participant Launcher as _test_imports
participant Napari as napari.qt Module
Launcher->>Napari: Import get_qapp
alt get_qapp available
Napari-->>Launcher: Return get_qapp
Launcher->>Launcher: Call get_qapp() to obtain app instance
else ImportError raised
Launcher->>Napari: Import get_app (alias as get_qapp)
Napari-->>Launcher: Return get_app
Launcher->>Launcher: Call get_qapp() (alias for get_app) to obtain app instance
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 300000ms (15)
🔇 Additional comments (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Czaki - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
get_qapp
from get_app
to handle napari deprecationget_qapp
from get_app
to handle napari deprecation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1249 +/- ##
========================================
Coverage 93.15% 93.15%
========================================
Files 210 210
Lines 33288 33288
========================================
Hits 31009 31009
Misses 2279 2279 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Summary by Sourcery
Enhancements:
get_qapp
and falling back toget_app
for older versions.Summary by CodeRabbit
personal_ws
and added a new project entry forqapp
.