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

[ENH] Update compare method with low/upper bounds #191

Merged

Conversation

drewejohnson
Copy link
Collaborator

The compare method now accepts the following objects to control the comparison:
- lower: lower bound on acceptable relative differences
- upper: upper bound on acceptable relative differences

Values with relative difference less than lower will be treated as a success, greater than or equal to upper will be treated as a failure, and in the middle will be warned but not a failure.

Added a developer guide that details how our comparison methods should be implemented, and what types of messages should be given for different scenarios

Added test_base_compare.py to perform some basic checks regarding
- input types to the compare method
- input arguments

andrewjohnson added 2 commits June 8, 2018 17:08
The compare method now accepts the following objects
to control the comparison:
    - lower: lower bound on acceptable relative differences
    - upper: upper bound on acceptable relative differences

Values with relative difference less than lower will be treated
as a success, greater than or equal to upper will be treated as
a failure, and in the middle will be warned but not a failure.

Added a developer guide that details how our comparison methods
should be implemented, and what types of messages should be
given for different scenarios
Added test_base_compare.py to perform some basic checks
regarding
    - input types to the compare method
    - input arguments
@DanKotlyar
Copy link
Contributor

This is really great. Should be really useful to the serpent developers.

@drewejohnson drewejohnson merged commit 7981998 into CORE-GATECH-GROUP:enh-compare Jun 10, 2018
@drewejohnson drewejohnson deleted the enh-update-args branch June 10, 2018 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation testing Related to our test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants