-
Notifications
You must be signed in to change notification settings - Fork 34
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
Merge Metadata
and GroupMetadata
into one Python class
#2099
Merge Metadata
and GroupMetadata
into one Python class
#2099
Conversation
After further consideration, I believe this change will break backward compatibility. More testing is needed, specifically writing metadata with older tiledb-py versions and reading it with this version, and vice versa. |
63a2d49
to
d085808
Compare
4a4f4b1
to
9493586
Compare
d085808
to
27b9ec9
Compare
27b9ec9
to
c9098ab
Compare
In #2099, backward compatibility has been fixed. After rebasing the pybind11-full branch onto the |
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! Using a template for the MetadataAdapter
class so that it can take both arrays and groups is really clever.
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
|
||
template <typename T> class MetadataAdapter { |
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.
Nice!
* Delete Cython * Add new pybind11 Adapter class * Move Python class + fixes * Fix tests
* Delete Cython * Add new pybind11 Adapter class * Move Python class + fixes * Fix tests
Following #2085, this PR removes the Cython
Metadata
class and renames Python'sGroupMetadata
class toMetadata
. The newMetadata
class is now shared between theArray
andGroup
classes, as both classes now have aself._meta
property that is an instance of this class.Additionally, the common pybind11 code has been moved to a separate
metadata.cc
file, within an adapter templated class that works for both theArray
andGroup
classes.CI: https://github.com/TileDB-Inc/TileDB-Py/actions/runs/11503873688
[sc-54605]