-
Notifications
You must be signed in to change notification settings - Fork 25
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
[python] Remove double open For SOMAArray
reads
#3293
base: main
Are you sure you want to change the base?
[python] Remove double open For SOMAArray
reads
#3293
Conversation
SOMAArray
ReadsSOMAArray
reads
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3293 +/- ##
==========================================
+ Coverage 85.09% 85.32% +0.22%
==========================================
Files 53 53
Lines 5577 5567 -10
==========================================
+ Hits 4746 4750 +4
+ Misses 831 817 -14
Flags with carried forward coverage won't be shown. Click here to find out 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.
This is really really nice --a well-thought-out refactor, well executed. Just some minor mods requested. :)
89cd943
to
47c6f9f
Compare
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.
🚢
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 great. Two small items:
- platform_config handling - noted inline
- ManagedQuery GIL - the read path moves some logic up from C++ to Python -- we need to make sure the pybind entry points are all releasing GIL where appropriate. My quick skim is that it looks OK, but I suggest we benchmark after landing this to confirm.
e97a0f8
to
c5dad57
Compare
ac764f8
to
9124aff
Compare
Issue and/or context:
This finishes up #3053.
Changes:
clib.SOMAArray.open
in allSOMAArray
derived classread
callsclib.SOMAArray.open
orclib.SOMAArray.reset
instead toTableReadIter
andSparseNDArrayRead
_set_coords
on theManagedQuery
rather than throughSOMAArray
_arrow_table_reader
andSparseTensorReadIterBase
initialize aManagedQuery
object and set the query arguments listed above; set up the read; and submit reads and return results until the query is complete