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

[r] Write group-level string metadata as TILEDB_STRING_UTF8 #3469

Merged

Conversation

mojaveazure
Copy link
Member

@mojaveazure mojaveazure commented Dec 18, 2024

String group-level metadata was previously encoded using TILEDB_CHAR or TILEDB_STRING_ASCII; however, this resulting in the metadata being read in as bytes in the Python API instead of as str. The Python API already encodes all strings (str) as TILEDB_STRING_UTF8 so this PR brings the R API in-line with the Python API

SC-61001

adresses #2698

String group-level metadata was previously encoded using
`TILEDB_CHAR` or `TILEDB_STRING_ASCII`; however, this resulting in the
metadata being read in as `bytes` in the Python API instead of as `str`.
The Python API already [encodes all strings (`str`) as
`TILEDB_STRING_UTF8`](https://github.com/single-cell-data/TileDB-SOMA/blob/884342a1ceb994d677c52c74ba2d789fc4e208d4/apis/python/src/tiledbsoma/common.cc#L211-L223)
so this PR brings the R API in-line with the Python API

[SC-61001](https://app.shortcut.com/tiledb-inc/story/61001)

resolves #2698
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.

LGTM

The facts that no unit tests have been added -- and that no existing unit-test cases are now failing -- are reassuring confirmation that we do need the cross-language tests here #2698 to clinch the typing compatibilities

apis/r/src/groups.cpp Show resolved Hide resolved
Copy link
Member

@bkmartinjr bkmartinjr left a comment

Choose a reason for hiding this comment

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

I'd like to see a test run regularly - is that something for this PR, or follow-up backlog?

@johnkerl
Copy link
Member

I'd like to see a test run regularly - is that something for this PR, or follow-up backlog?

@bkmartinjr please see

@mojaveazure the closing criterion for #2698 is that cross-language test

@mojaveazure mojaveazure force-pushed the paulhoffman/sc-61001/r-python-r-and-python-create-groups-with branch from 372ffb8 to bb678d6 Compare December 18, 2024 20:49
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.32%. Comparing base (884342a) to head (941745f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3469   +/-   ##
=======================================
  Coverage   86.32%   86.32%           
=======================================
  Files          55       55           
  Lines        6339     6339           
=======================================
  Hits         5472     5472           
  Misses        867      867           
Flag Coverage Δ
python 86.32% <ø> (ø)

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

Components Coverage Δ
python_api 86.32% <ø> (ø)
libtiledbsoma ∅ <ø> (∅)

@mojaveazure
Copy link
Member Author

@bkmartinjr @johnkerl round-trip checks added in 941745f

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.

@mojaveazure awesome, thank you!

Bump develop version

[ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants