Closed shrivaths16 closed 8 months ago
A new test function was added to test_formats.py
to test reading Sleap analysis files using SleapAnalysisAdaptor
. This addition enhances the testing suite's coverage for reading Sleap analysis files.
File Path | Change Summary |
---|---|
tests/fixtures/videos.py |
Added import for FileHandle . |
Added constants and fixtures for single fly data. | |
tests/io/test_formats.py |
Added test function test_sleap_analysis_read . |
πππ§ͺ
Tests and fixtures, a rabbit's delight,
New functions added, shining bright.
Code and data, hand in hand,
Ensuring Sleap files are grand.
ππΎπ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 73.38%. Comparing base (
60a441f
) to head (4d48a65
). Report is 1 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
While performing inference for single instances, there seems to be no track names generated. This is causing
IndexError
while trying to load a HDF5 file since, the number of tracks is 1 and thetrack_names
is empty. So we add a condition to check this and create a single track accordingly.Types of changes
Does this address any currently open issues?
[list open issues here]
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
FileHandle
for improved functionality.small_robot_3_frame_hdf5
,single_fly_hdf5
, andsingle_fly_mp4_vid
for testing.TEST_SMALL_ROBOT3_FRAME_H5
,TEST_SINGLE_FLY_H5
, andTEST_SINGLE_FLY
for test scenarios.test_sleap_analysis_read
to read Sleap analysis files usingSleapAnalysisAdaptor
.