| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: audio file subtype (#5602) ## Changes Made Creates new AudioFile class that's mostly a wrapper around soundfile library. provides common methods for interacting with audio files such as - metadata - resample - to_numpy Also supports dataframe expressions - daft.functions.audio_file - daft.functions.resample - daft.functions.audio_metadata Still need to add tests and a few more methods. Will follow up in a separate PR some functionality for audio extraction from video files. ## Related Issues <!-- Link to related GitHub issues, e.g., "Closes #123" --> ## Checklist - [ ] Documented in API Docs (if applicable) - [ ] Documented in User Guide (if applicable) - [ ] If adding a new documentation page, doc is added to docs/mkdocs.yml navigation - [ ] Documentation builds and is formatted properly | 10 个月前 | |
docs: Update daft.File API and add docstrings, improve error handling in tests (#5877) - Updated error messages in AudioFile and related functions to provide clearer instructions for installing required modules (soundfile and librosa). - Enhanced docstrings to include detailed metadata descriptions for audio files. - Added new documentation files for daft.File types and updated existing documentation links for better navigation. - Improved test cases to ensure informative error handling when dependencies are missing. This change aims to improve user experience by providing clearer guidance on required dependencies and enhancing the overall documentation structure. | 9 个月前 | |
docs: Update daft.File API and add docstrings, improve error handling in tests (#5877) - Updated error messages in AudioFile and related functions to provide clearer instructions for installing required modules (soundfile and librosa). - Enhanced docstrings to include detailed metadata descriptions for audio files. - Added new documentation files for daft.File types and updated existing documentation links for better navigation. - Improved test cases to ensure informative error handling when dependencies are missing. This change aims to improve user experience by providing clearer guidance on required dependencies and enhancing the overall documentation structure. | 9 个月前 | |
feat: audio file subtype (#5602) ## Changes Made Creates new AudioFile class that's mostly a wrapper around soundfile library. provides common methods for interacting with audio files such as - metadata - resample - to_numpy Also supports dataframe expressions - daft.functions.audio_file - daft.functions.resample - daft.functions.audio_metadata Still need to add tests and a few more methods. Will follow up in a separate PR some functionality for audio extraction from video files. ## Related Issues <!-- Link to related GitHub issues, e.g., "Closes #123" --> ## Checklist - [ ] Documented in API Docs (if applicable) - [ ] Documented in User Guide (if applicable) - [ ] If adding a new documentation page, doc is added to docs/mkdocs.yml navigation - [ ] Documentation builds and is formatted properly | 10 个月前 | |
fix(video): add missing pillow dependency for video keyframes (#6355) Based on @everettVT's branch. video_keyframes() fails with a confusing DaftError::ValueError Need at least 1 series to perform concat when Pillow is not installed. This primarily affects Python 3.12+ users because the daft[video] extra didn't include pillow as a dependency, and Pillow isn't transitively installed on those versions. The root cause is that VideoFile.keyframes() calls frame.to_image() (which requires PIL) without checking for its availability first. When every row fails, the errors get swallowed and ListArray::try_from hits an empty concat instead of surfacing the actual ModuleNotFoundError. To fix this, we add pillow==12.1.1 to the video extra in pyproject.toml (matching the pin used by the google, openai, and transformers extras) and add an early import check in VideoFile.keyframes() that raises a clear ImportError directing users to pip install daft[video]. Fixes #6064 Co-authored-by: Everett Kleven <ekleven@vangelis.tech> | 7 个月前 |