Repository navigation
Fix missing array interface for associated_image() - #65
Conversation
grlee77
left a comment
There was a problem hiding this comment.
This looks okay to me, but I have only rarely looked at pybind11 code, so it would be nice to have a test case to be 100% sure. Can you confirm that you tested the fix locally with a TIFF file?
Is there not some small public domain TIFF we could add as test data?
|
Thanks @grlee77!
I have tested it locally with a Philips Tiff file having associated image
so I can confirm it is working properly with the fix.
I couldn't find some very small size of such test data so I would like to
add test case for that later with generating an artificial test data with
associated image during test time by using PyTest's fixture in the separate
PR.
…On Wed, Jul 21, 2021 at 1:37 PM Gregory R. Lee ***@***.***> wrote:
***@***.**** commented on this pull request.
This looks okay to me, but I have only rarely looked at pybind11 code, so
it would be nice to have a test case to be 100% sure. Can you confirm that
you tested the fix locally with a TIFF file?
Is there not some small public domain TIFF we could add as test data?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#65 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOW2ST2ODP2B3TJUK3UWSTTY4VZPANCNFSM5ADV525A>
.
|
jakirkham
left a comment
There was a problem hiding this comment.
Thanks Gigon! 😄
Had a question about how we handle acquiring the GIL here
|
@gpucibot merge |
|
Thanks Gigon! 😄 |
Thanks @jakirkham ! The line 403 (https://github.com/rapidsai/cucim/pull/65/files#diff-48de51ebe61a16c8d3878cba6d31c628f024287fc2671440f9bae39ab6bcbd64R403 ) is for acquiring GIL :) Before 20.06.00, CuImage object always had However, from 20.06.00, we introduced supporting For this reason, it needed to acquire GIL (for using Python objects in C++). Thanks! |
__array_interface__for the object returned byCuImage.associated_image()was missing so cannot be converted numpy.This bug was introduced during the implementation of Cache and support for
__cuda_array_interface__: #48 .associated_image()API is not frequently used by users so it's fine.We will need to add a test case for this once the artificial test image with the associated image (such as Philips TIFF) is available.