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

[c++/python] SOMAGeometryDataFrame basic write #3687

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

XanthosXanthopoulos
Copy link
Collaborator

Issue and/or context:

Changes:

Notes for Reviewer:
This PR moves the helper methods transforming from polygon outlines to WKB encoded geometry into a separate class. Adds a basic transformer pipeline and exposes it to the python API and adds helper methods to the python API for ingesting with a transformation.

The C++ GeometryDataFrame cleanup will happen after updating all read and write operations with ManagedQuery

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 84.37500% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.37%. Comparing base (552dfc0) to head (f5c1016).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3687      +/-   ##
==========================================
+ Coverage   86.31%   86.37%   +0.06%     
==========================================
  Files          55       55              
  Lines        6495     6524      +29     
==========================================
+ Hits         5606     5635      +29     
  Misses        889      889              
Flag Coverage Δ
python 86.37% <84.37%> (+0.06%) ⬆️

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

Components Coverage Δ
python_api 86.37% <84.37%> (+0.06%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@XanthosXanthopoulos XanthosXanthopoulos changed the title [c++/python] SOMAGeometryDataFrame basic write [WIP] [c++/python] SOMAGeometryDataFrame basic write Feb 11, 2025
@XanthosXanthopoulos XanthosXanthopoulos requested review from johnkerl, jp-dark and nguyenv and removed request for johnkerl and jp-dark February 11, 2025 23:35
@XanthosXanthopoulos XanthosXanthopoulos marked this pull request as ready for review February 11, 2025 23:36
@@ -311,6 +314,17 @@ def __init__(

# Data operations

def __len__(self) -> int:
Copy link
Member

Choose a reason for hiding this comment

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

This is very convenient! But (AFAIK) not implemented for the other dataframe classes.

Might be worth doing for the other dataframe classes (as a separate PR).

return self

# Write helpers with automatic transformations
def from_outlines(
Copy link
Member

Choose a reason for hiding this comment

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

Should I know what an 'outline' is?

@@ -0,0 +1,87 @@
/**
* @file managed_query.cc
Copy link
Member

Choose a reason for hiding this comment

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

copypasta

*
* @section DESCRIPTION
*
* This file defines the ManagedQuery bindings.
Copy link
Member

Choose a reason for hiding this comment

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

copypasta

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.

3 participants