neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
77 stars 7 forks source link

Add a ValidBboxesDataset class #201

Closed sfmig closed 2 weeks ago

sfmig commented 3 weeks ago

Description

What is this PR

Why is this PR needed? We want to be able to load bounding boxes tracks (see #167).

What does this PR do?? This PR defines a ValidBboxesDataset class, that follows ValidPosesDataset.

A bounding boxes dataset is made up of 4 data arrays:

We are assuming 2D bounding boxes only for now (through the validation of the position and the shape arrays).

Questions

References

Issue #167.

This work is derived from splitting #186 into smaller PRs.

How has this PR been tested?

Tests pass locally and on CI.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

It will require an update once the bounding boxes functionality is complete.

Checklist:

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.70%. Comparing base (e4eea35) to head (2f4cf20).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #201 +/- ## ========================================== + Coverage 99.68% 99.70% +0.01% ========================================== Files 12 12 Lines 643 678 +35 ========================================== + Hits 641 676 +35 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud