-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
1141 | Validate canvas width, height #1183
1141 | Validate canvas width, height #1183
Conversation
Thanks. I'll leave it to @ianthomas23 to think about whether it's appropriate to raise an error or to return an empty array in this case; not sure which is e.g. less problematic for HoloViews. |
OK, so the options here are
I'd be happy with either but my preference is for 1 as I'd rather detect the situation as soon as possible and report it immediately. @Jap8nted Are you happy to continue with this PR? If so, this fix is good, it is failing CI because the raised |
Hi, I will continue with it, @ianthomas23. In my opinion, raising an error is better as we skip unnecessary calculations. will fix it later and check that the CI finishes successfully. |
Codecov Report
@@ Coverage Diff @@
## main #1183 +/- ##
=======================================
Coverage 85.38% 85.39%
=======================================
Files 35 35
Lines 8011 8016 +5
=======================================
+ Hits 6840 6845 +5
Misses 1171 1171
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
@Jap8nted This is functionally fine. I've manually tested it using cudf
and cudf-dask
as our CI doesn't do this for us and they both fail correctly.
I would rather call it validate_size
than validate_extend
so I have made a few suggested changes along those lines, and also a few changes to whitespace. If you could make those amendments it should be good to merge.
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.
Thanks @Jap8nted.
Thanks for the comments and help @ianthomas23 and happy to help! |
See issue #1141.
When a canvas is created with plot_width=0 or plot_height=0 and the data is coming from dask, there is a core dump error, up to now, the error could just be reproduced on a machines running amd and intel. On Arm the problem does not appear.