albumentations-team / albucore

A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations. Perfect for developers working in computer vision who require efficient and scalable image augmentation.
MIT License
12 stars 3 forks source link

Added tests to check output shape and dtype #20

Closed ternaus closed 4 months ago

ternaus commented 4 months ago

Summary by Sourcery

This pull request updates the CI workflow to use 'uv' for pip installations and adds assertions in multiple test cases to check the output shape and dtype, ensuring consistency and correctness of the functions being tested.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request primarily adds assertions to various test files to check the output dtype and shape, ensuring that the output matches the expected dtype and shape. Additionally, the CI workflow file was updated to use 'uv' and '--system' options in pip install commands.

File-Level Changes

Files Changes
tests/test_add.py
tests/test_add_weighted.py
tests/test_normalize.py
tests/test_multiply.py
tests/test_multiply_add.py
tests/test_normalize_per_image.py
tests/test_power.py
Added assertions to check the output dtype and shape in various test files.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.