dyson-ai / bencher

A package for benchmarking the characteristics of arbitrary functions
https://bencher.readthedocs.io/en/latest/
MIT License
2 stars 3 forks source link

Feature/replace with sample values #401

Closed blooop closed 3 months ago

blooop commented 3 months ago

Summary by Sourcery

Replaced the usage of 'with_sample_values' method with a new 'bch.p' function for defining sample values in various example scripts.

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

This pull request refactors the code to replace the usage of BenchMeta.param with a more concise bch.p function for defining sample values in various example files. This change aims to simplify the code and make it more readable.

File-Level Changes

Files Changes
bencher/example/meta/example_meta.py
bencher/example/meta/example_meta_cat.py
bencher/example/meta/example_meta_levels.py
bencher/example/meta/example_meta_float.py
Replaced BenchMeta.param with bch.p for defining sample values in various meta example files.
bencher/example/example_composable_container.py
bencher/example/example_composable_container2.py
Replaced commented out BenchComposableContainerImage.param with bch.p for defining sample values in composable container example 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.