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] Add Unicode metadata support #3558

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

Conversation

XanthosXanthopoulos
Copy link
Collaborator

A follow-up PR to #3548 that adds support for Unicode metadata.

UTF-8 support is not enough to store 1D numpy string arrays because Unicode arrays are by default UTF-32 encoded and can contain NULL bytes.

Additionally improved robustness of metadata writing by attempting to write all modifications and collecting errors throughout the process and raising an exception cumulative at the end, rather than throwing midway.

Copy link

codecov bot commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.26%. Comparing base (eabdb30) to head (009754e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3558      +/-   ##
==========================================
+ Coverage   86.25%   86.26%   +0.01%     
==========================================
  Files          55       55              
  Lines        6359     6408      +49     
==========================================
+ Hits         5485     5528      +43     
- Misses        874      880       +6     
Flag Coverage Δ
python 86.26% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
python_api 86.26% <100.00%> (+0.01%) ⬆️
libtiledbsoma ∅ <ø> (∅)

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.

1 participant