Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypothesis for targets and intervals #56

Merged
merged 16 commits into from
Dec 19, 2023
Merged

Hypothesis for targets and intervals #56

merged 16 commits into from
Dec 19, 2023

Conversation

AdrianSosic
Copy link
Collaborator

@AdrianSosic AdrianSosic commented Dec 8, 2023

This PR brings hypothesis testing for targets and intervals and follows the same approach as described in #6.

To do so, it also enables proper deserialization of target subclasses via the base class using the same "tagged union approach" as for the remaining BayBE components. Since providing type specification for targets was not enforced previously, a temporary backward-compatible workaround is added that fills missing type.

@AdrianSosic AdrianSosic added the tests Related to testing. label Dec 8, 2023
@AdrianSosic AdrianSosic added this to the Hypothesis milestone Dec 8, 2023
@AdrianSosic AdrianSosic self-assigned this Dec 8, 2023
baybe/targets/base.py Show resolved Hide resolved
tests/hypothesis_strategies/parameters.py Outdated Show resolved Hide resolved
tests/hypothesis_strategies/targets.py Outdated Show resolved Hide resolved
tests/hypothesis_strategies/targets.py Outdated Show resolved Hide resolved
tests/hypothesis_strategies/utils.py Show resolved Hide resolved
tests/hypothesis_strategies/utils.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/hypothesis_strategies/parameters.py Outdated Show resolved Hide resolved
tests/hypothesis_strategies/utils.py Outdated Show resolved Hide resolved
@AdrianSosic AdrianSosic merged commit c21197a into main Dec 19, 2023
8 checks passed
@AdrianSosic AdrianSosic deleted the hypothesis/targets branch December 19, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Related to testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants