-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and relax bboxes requirements (#313)
* Fix for single individual * Relax requirement of continuous frames for bboxes dataset (require only monotonically increasing frame numbers) * Relax requirement for frame number * Make existing tests pass * test_from_via_tracks_file and test_via_attribute_column_to_numpy pass (WIP) * Clarify docstring * Fix and simplify existing tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix and simplify existing tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix sonarcloud issue * Add test for case in which frame is defined under file_attribute * Simplify frame number extraction test by splitting it * Use default regexp global variable * Add docstrings to fixtures * Make fixtures for new frame check more evident * Fix from numpy docstring * Fix docstring in validator re regexp for frame number * Add value error to assert_time_coordinates * Remove note to self * Expose frame regexp * Add try except pattern for regexp match * Extend and add tests for frame_regexp possible values * Clarify error message for validator about frame regexp * Simplify try except regexp block * Fix tests * Simplify * Adapt tests * Simplify frame extraction * Small edits * Clarify docstrings * Specify exception caught when extracting frame number from file_attribute * Fix error message referring to default regexp only, and adapt tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4de4963
commit f7539b9
Showing
6 changed files
with
623 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.