-
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
[c++] Hide internal dimensions #3266
base: main
Are you sure you want to change the base?
Conversation
std::shared_ptr<Context> ctx, | ||
std::shared_ptr<Array> tiledb_array); |
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.
Looks like you can change the implementation so these are passed as const references instead of pointers without too much pain.
b77de49
to
eb47db2
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.
Please include in this PR's description some copy/paste of:
- Example use of how the user might keystroke out the
index_column_names
anddomain
atcreate
- Either for
SOMAGeometryDataFrame.create
, and/or - For an ingestion step at the experiment level
- Either for
- What
domain
might look like when they read it back
Also:
- Please file a follow-on PR to update https://github.com/single-cell-data/TileDB-SOMA/tree/main/apis/python/notebooks
40a95f2
to
3c73a73
Compare
…ing an array for read unless explicity specify them
Co-authored-by: John Kerl <kerl.john.r@gmail.com>
Co-authored-by: John Kerl <kerl.john.r@gmail.com>
…n, x_max, y_min, y_max) (#3299)
3e6d9f2
to
87cef7c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3266 +/- ##
===========================================
- Coverage 85.14% 66.83% -18.32%
===========================================
Files 53 138 +85
Lines 5568 17689 +12121
Branches 0 1108 +1108
===========================================
+ Hits 4741 11822 +7081
- Misses 827 5484 +4657
- Partials 0 383 +383
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
||
// Both min and max dimension share the same domain | ||
if (ArraySchemaExperimental::current_domain( | ||
*this->ctx()->tiledb_ctx(), *this->tiledb_schema()) |
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.
You reference both of these throughout
*this->ctx()->tiledb_ctx(), *this->tiledb_schema())
Please make an
auto ctx = this->ctx()->tiledb_ctx();
and
auto schema = this->tiledb_schema();
* | ||
* @return ArrowSchema | ||
*/ | ||
static std::unique_ptr<ArrowSchema> arrow_schema_from_tiledb_dimension( |
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 wish you had made these helpers as a separate PR. As an ongoing ask I am continuing to ask for split-out PRs.
This PR is only 300 lines, which isn't a lot, but, all the codecov warnings are making this hard to read -- as if it had been a high-line-count PR.
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 ask you to split this not due to high line count but because you've got two different things going on. Pulling out helper functions is distinct from the goal of the PR (hiding internal dimensions) and is worth a separate PR. Then you can stack the dimension-hiding on top of it as a second PR.
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.
Specifically, please split out a PR with only the arrow_adapter.h
and arrow_adapter.cc
mods. That, I will understand quickly, and will be able to review quickly.
Geometry dataframe creates some extra internal dimensions to support spatial indexing. When returning back the index column names and arrow schema these dimensions (being implementation-specific) should be hidden and replaces with
soma_geometry
as index column.Additionally setting a range for spatial axes should only need the axis name and not the internal index names.