Skip to content
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

Move Domain and Dim Into Pure Python (2/3) #1327

Merged
merged 4 commits into from Dec 21, 2022
Merged

Conversation

nguyenv
Copy link
Collaborator

@nguyenv nguyenv commented Sep 20, 2022

This is a subset of #1188. Includes changes from #1326.

@nguyenv nguyenv force-pushed the viviannguyen/pybind11-dom-dim branch 2 times, most recently from 67f184c to a59b084 Compare September 20, 2022 11:21
@nguyenv nguyenv force-pushed the viviannguyen/pybind11-dom-dim branch from a59b084 to 2f81560 Compare October 6, 2022 19:13
@nguyenv nguyenv marked this pull request as ready for review October 6, 2022 19:13
@nguyenv nguyenv force-pushed the viviannguyen/pybind11-dom-dim branch from 2f81560 to cd0f25e Compare October 6, 2022 19:16
nguyenv added a commit that referenced this pull request Oct 27, 2022
@nguyenv nguyenv force-pushed the viviannguyen/pybind11-dom-dim branch from f1bb555 to c5b5a7a Compare November 15, 2022 23:12
Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's talk through the design a bit more here. _lt_obj arguments don't quite seem right. __init__ methods should take arguments that are used to construct the class, and those _lt_obj arguments could be moved into a staticmethod factor constructor which forwards to __init__. But I want to make sure I understand why those are necessary (similar to the next point)

tiledb/cc/domain.cc Show resolved Hide resolved
tiledb/dimension.py Outdated Show resolved Hide resolved
Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some minor nits. Thanks

tiledb/cc/domain.cc Outdated Show resolved Hide resolved
tiledb/cc/domain.cc Outdated Show resolved Hide resolved

super().__init__(self._ctx, name, dim_datatype, domain_array, tile_size_array)

if filters is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see if we can move this to the constructor

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is easier to just leave it as is since the create function does not take in a filter list argument.

https://github.com/TileDB-Inc/TileDB/blob/dev/tiledb/sm/cpp_api/dimension.h#L430-L478

@nguyenv nguyenv force-pushed the viviannguyen/pybind11-dom-dim branch from 4f26b9c to d84a686 Compare December 21, 2022 21:11
@nguyenv nguyenv merged commit 4394fb3 into dev Dec 21, 2022
@nguyenv nguyenv deleted the viviannguyen/pybind11-dom-dim branch December 21, 2022 23:31
nguyenv added a commit that referenced this pull request Dec 22, 2022
* This should have been reverted before merging
#1327, but I forgot to
modify
nguyenv added a commit that referenced this pull request Dec 22, 2022
* This should have been reverted before merging
#1327, but I forgot to
modify
nguyenv added a commit that referenced this pull request Dec 22, 2022
* This should have been reverted before merging
#1327, but I forgot to
modify
nguyenv added a commit that referenced this pull request Dec 22, 2022
* This should have been reverted before merging
#1327, but I forgot to
modify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants