Skip to content

Structured array highlevel accessors#3098

Merged
mergify[bot] merged 2 commits intotskit-dev:mainfrom
benjeffery:structured-array-highlevel
Mar 21, 2025
Merged

Structured array highlevel accessors#3098
mergify[bot] merged 2 commits intotskit-dev:mainfrom
benjeffery:structured-array-highlevel

Conversation

@benjeffery
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.96%. Comparing base (5c6694e) to head (5c107db).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3098   +/-   ##
=======================================
  Coverage   89.95%   89.96%           
=======================================
  Files          29       29           
  Lines       32471    32498   +27     
  Branches     5823     5823           
=======================================
+ Hits        29209    29236   +27     
  Misses       1860     1860           
  Partials     1402     1402           
Flag Coverage Δ
c-tests 86.69% <ø> (ø)
lwt-tests 80.78% <ø> (ø)
python-c-tests 89.23% <100.00%> (ø)
python-tests 98.99% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
python/_tskitmodule.c 89.23% <100.00%> (ø)
python/tskit/trees.py 98.87% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benjeffery benjeffery force-pushed the structured-array-highlevel branch from 941ba92 to 2e25635 Compare March 7, 2025 13:28
@benjeffery benjeffery marked this pull request as ready for review March 7, 2025 13:28
Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

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

Looks good

)

@property
def individuals_metadata_offset(self):
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure we want to offer this array in the high-level API. It may just be confusing. I would pull this out of the current PR, as it's orthogonal

Copy link
Member Author

Choose a reason for hiding this comment

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

Offset accessors removed in b74b824

@benjeffery
Copy link
Member Author

@jeromekelleher one more thought here - we could return the raw metadata bytes if the codec doesn't support structuring?

@jeromekelleher
Copy link
Member

Let's not - maybe we'll think of a better way of doing things in future and having it error out now leaves those options open.

@benjeffery
Copy link
Member Author

@jeromekelleher Could I get a final check here?

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

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

LGTM. Would be good to have a perf check just to be sure before release, but happy to merge this.

@benjeffery benjeffery force-pushed the structured-array-highlevel branch from b74b824 to 5c107db Compare March 21, 2025 14:11
@mergify mergify bot merged commit f9ce53c into tskit-dev:main Mar 21, 2025
21 checks passed
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.

2 participants