-
-
Notifications
You must be signed in to change notification settings - Fork 443
Move export ROI implementation into qt_viewer #7950
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7950 +/- ##
==========================================
+ Coverage 92.93% 93.03% +0.10%
==========================================
Files 647 648 +1
Lines 60975 61466 +491
==========================================
+ Hits 56665 57187 +522
+ Misses 4310 4279 -31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@Czaki Does this mitigate or work around the Qt bug? |
In general, our teardown procedure for This PR workaround it by using Qt Viewer and pure Qt stack for deletion |
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.
This looks like it simplifies things @Czaki. In an airport so didn't run locally.
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.
LGTM! It feel slike this should actually just mostly live on the ViewerModel
to be honest, but we can do that at a later point!
Its again crash in |
LOL I looked at the code and approved before seeing the last comment 😂 🤦 😢 |
I'm going to do a lame drive-by and wanted to check this env locally. I don't get a fatal error but do get an error suggesting we aren't adjusting for scaling correctly.
|
Yes. When I write this code I think about integer scaling, not fractional. Will fix it later but do not want to touch this code before this PR is finished. |
This reverts commit c4cd70b.
References and relevant issues
Description
In #7803 I got a few segfaults of
test_export_rois
. This PR refactor export_roi feature intoQtViewer
and change test to useqt_viewer
fixture instead ofmake_napari_viewer
. This should reduce fragility of tests and allo to use export_roi feature with qt_viewer embedded in custom window (as a nice additional feature)Note
The error to easier count dots when reproducing