Closed brimoor closed 1 month ago
The changes enhance the functionality of the fiftyone
library by updating the stats
and get_index_information
methods to provide more comprehensive index statistics. New parameters clarify the inclusion of index build statuses, while additional private methods streamline the collection of statistics. A new test method ensures that index creation processes are accurately reported, reinforcing the reliability of dataset management.
Files | Change Summary |
---|---|
fiftyone/core/collections.py |
Updated stats and get_index_information methods for improved index statistics; added handling for indexes in progress. |
fiftyone/core/dataset.py |
Refactored stats to use private methods for statistics retrieval; improved clarity on index statistics with new parameters. |
tests/unittests/dataset_tests.py |
Added test_index_in_progress to verify index creation behavior; updated existing tests to align with new method parameters. |
sequenceDiagram
participant User
participant Dataset
participant IndexManager
User->>Dataset: Request stats with indexes
Dataset->>IndexManager: Get index information (include_stats)
IndexManager->>IndexManager: Retrieve index sizes and statuses
IndexManager-->>Dataset: Return index information
Dataset-->>User: Return stats with index details
🐇 In the meadow, hopping with glee,
New stats and indexes, oh look at me!
With progress in sight, we keep track of the game,
In the world of data, nothing stays the same!
Let's cheer for the changes, both bright and new,
For a dataset's journey, there's much we can do! 🌼✨
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?
Cherry-picks https://github.com/voxel51/fiftyone/pull/4633 for release, since the related index changes from https://github.com/voxel51/fiftyone/pull/4607 made it in.
Summary by CodeRabbit
New Features
Bug Fixes
Tests