Skip to content

Improve pose reader performance and avoid sorting #9

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

Merged
merged 10 commits into from
Feb 11, 2025
Merged

Conversation

glopesdev
Copy link
Contributor

@glopesdev glopesdev commented Feb 5, 2025

  • Add prefix anchor_ to anchor part name to avoid duplicates
  • Use numpy array slicing to reformat data without concat and sorting

The slicing allows for pairing values and timestamps correctly without the need for sorting. It also improves the interleaving of parts across the final array, as previously tie-breaks were resolved somehow by implicitly "grouping" part names together, whereas now values are grouped by identity, as follows naturally from the raw data.

Fixes #8

- Add prefix anchor_ to anchor part name to avoid duplicates
- Use numpy array slicing to reformat data without concat and sorting
@glopesdev glopesdev added the fix Pull request that fixes an issue label Feb 5, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.14%. Comparing base (1e40471) to head (a5e2800).

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   48.43%   51.14%   +2.70%     
==========================================
  Files          11       10       -1     
  Lines         638      614      -24     
==========================================
+ Hits          309      314       +5     
+ Misses        329      300      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glopesdev glopesdev force-pushed the pose-reader branch 2 times, most recently from 28519d4 to 1a86fad Compare February 5, 2025 23:35
Multi-model config files are currently not supported by the
acquisition package so we have no valid tests for this yet
@glopesdev glopesdev merged commit cc72db1 into main Feb 11, 2025
3 checks passed
@glopesdev glopesdev deleted the pose-reader branch February 11, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve SLEAP pose reader
3 participants