8000 Numpy conversions by talmo · Pull Request #621 · talmolab/sleap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Numpy conversions #621

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 2 commits into from
Dec 29, 2021
Merged

Numpy conversions #621

merged 2 commits into from
Dec 29, 2021

Conversation

talmo
Copy link
Collaborator
@talmo talmo commented Dec 29, 2021

Description

  • LabeledFrame convenience properties
    • user_instances, n_user_instances, has_user_instances
    • predicted_instances, n_predicted_instances, has_predicted_instances
    • tracked_instances, n_tracked_instances, has_tracked_instances
    • Fix numpy() when there are no instances in the frame
  • Labels.numpy() revamp
    • Allow for specifying video as integer
    • Works with untracked and single instance data

Types of changes

  • Bugfix
  • New feature
  • Refactor / Code style update (no logical changes)
  • Build / CI changes
  • Documentation Update
  • Other (explain)

Does this address any currently open issues?

N/A

Outside contributors checklist

  • Review the guidelines for contributing to this repository
  • Read and sign the CLA and add yourself to the authors list
  • Make sure you are making a pull request against the develop branch (not main). Also you should start your branch off develop
  • Add tests that prove your fix is effective or that your feature works
  • Add necessary documentation (if appropriate)

Thank you for contributing to SLEAP!

❤️

- user_instances, n_user_instances, has_user_instances
- predicted_instances, n_predicted_instances, has_predicted_instances
- tracked_instances, n_tracked_instances, has_tracked_instances
- Fix numpy() when there are no instances in the frame
- Tests
- Works with untracked and single instance data
- Allow for specifying video as integer
@codecov-commenter
Copy link

Codecov Report

Merging #621 (02a50bd) into develop (c75e143) will increase coverage by 0.06%.
The diff coverage is 84.61%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #621      +/-   ##
===========================================
+ Coverage    64.99%   65.05%   +0.06%     
===========================================
  Files          124      124              
  Lines        20019    20075      +56     
===========================================
+ Hits         13011    13060      +49     
- Misses        7008     7015       +7     
Impacted Files Coverage Δ
sleap/io/dataset.py 80.67% <58.33%> (-0.52%) ⬇️
sleap/instance.py 87.92% <100.00%> (+0.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c75e143...02a50bd. Read the comment docs.

@talmo talmo changed the title Talmo/numpy conversion Numpy conversions Dec 29, 2021
@talmo talmo merged commit 0e2407b into develop Dec 29, 2021
@talmo talmo deleted the talmo/numpy_conversion branch December 29, 2021 07:30
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
0