-
Notifications
You must be signed in to change notification settings - Fork 153
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
Set disabled TableLayerArtists to be not visible #2286
Set disabled TableLayerArtists to be not visible #2286
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2286 +/- ##
==========================================
+ Coverage 88.13% 88.14% +0.01%
==========================================
Files 247 247
Lines 23292 23293 +1
==========================================
+ Hits 20528 20532 +4
+ Misses 2764 2761 -3
Continue to review full report at Codecov.
|
Thanks for your comments @dhomeier -- I don't think it matters if you call viewer.state.layers or viewer.layers since they should be kept in sync. I accidentally removed the calls to
when cleaning up this commit. Without this the layers don't try to be drawn and become invalid. With this restored you should be able to see this test failing without my change to |
But I also did change to call viewer.layers directly... |
I just noticed that |
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.
I don't have an idea about the failure with pyqt59-legacy
, but if you cannot find a solution, I'd find it acceptable to mark that as xfail
.
The pyqt515-dev
error is unrelated and fixed in #2287.
That leaves mainly the coding style to be addressed, and if you can think of a clearer description that would be a bonus (but I am not very familiar with that part of the code)!
I do not know the source of the |
I don't see any existing hooks for PYQT5 versions, so perhaps the best solution would be to define your own
only this would have to additionally include not PYSIDE2_INSTALLED .In theory the failure might be due to any of the legacy packages in that run, but since this is mostly working on the PyQt interface, that's probably the best bet – and would work either way for skipping the test in the CI. Pinging @astrofrog about the best approach for this. |
Ok -- so I've added a helper to skip this test for PyQt < 5.10, which means that |
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.
The make_skipper
extension should be quite useful in general, thanks.
For my part this will be good to go once the test is no longer skipped for *-pyside*
.
Co-authored-by: Derek Homeier <dhomeie@gwdg.de>
Co-authored-by: Derek Homeier <dhomeie@gwdg.de>
Co-authored-by: Derek Homeier <dhomeie@gwdg.de>
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.
The test failures are unrelated, so I'll approve and merge now - thanks @jfoster17!
Thanks; yes, I haven't seen those pyside14 segfaults before; but everything is passing or skipping the new test now as it should. |
Pull Request Template
Description
A fix for #2285, making sure that disabled TableLayerArtists are not visible, as the viewer will sometimes try to draw visible (but disabled) layers and throw an IncompatibleAttribute Error when it tries to do so. A regression test for this behavior is included.