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

[python] Refactor pybind11 inheritance to reduce repetition #2126

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

nguyenv
Copy link
Member

@nguyenv nguyenv commented Feb 12, 2024

Issue and/or context:

#2125

Changes:

DRY: refactor binding code to have proper inheritance from SOMADataframe, SOMAArray, and SOMAObject.

These changes were picked out of #1817. I am opening smaller PRs to make it easier to review this time.

Notes for Reviewer:

These changes are meant to be on top of #2124. Please review that PR first.

@nguyenv nguyenv force-pushed the viviannguyen/refactor-pybind11-inheritance branch from faa7509 to ce950db Compare February 12, 2024 17:23
@johnkerl johnkerl changed the title [python] Refactor Pybind11 inheritance to reduce repetition [python] Refactor pybind11 inheritance to reduce repetition Feb 12, 2024
Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

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

🚢

Base automatically changed from viviannguyen/refactor-inheritance to main February 12, 2024 20:16
@nguyenv nguyenv force-pushed the viviannguyen/refactor-pybind11-inheritance branch from ce950db to 32decdd Compare February 12, 2024 20:17
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Merging #2126 (32decdd) into main (57347c0) will increase coverage by 12.91%.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2126       +/-   ##
===========================================
+ Coverage   78.47%   91.38%   +12.91%     
===========================================
  Files         136       35      -101     
  Lines       10679     3784     -6895     
  Branches      211        0      -211     
===========================================
- Hits         8380     3458     -4922     
+ Misses       2197      326     -1871     
+ Partials      102        0      -102     
Flag Coverage Δ
libtiledbsoma ?
python 91.38% <0.00%> (+0.64%) ⬆️
r ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 91.38% <0.00%> (+0.64%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@nguyenv nguyenv merged commit 14ae8ea into main Feb 12, 2024
11 checks passed
@nguyenv nguyenv deleted the viviannguyen/refactor-pybind11-inheritance branch February 12, 2024 21:42
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.

[python] Refactor binding code to inherit from SOMAArray and SOMAObject
2 participants