Skip to content

WithinTolerance Validator#920

Merged
arsharma1 merged 1 commit intogoogle:masterfrom
JamesMTSloan:within_tolerance
Feb 11, 2020
Merged

WithinTolerance Validator#920
arsharma1 merged 1 commit intogoogle:masterfrom
JamesMTSloan:within_tolerance

Conversation

@JamesMTSloan
Copy link
Contributor

@JamesMTSloan JamesMTSloan commented Feb 8, 2020

Using a tolerance is a common way of defining whether or not a measurement is in an acceptable range. It is a variant on the InRange but I feel this is more convenient for cases where you have a set target and tolerance as it calculates the range for you.

@htf.measures(htf.Measurement('measurement').within_tolerance(5.0, 0.1))

This change is Reviewable

Copy link
Collaborator

@arsharma1 arsharma1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@arsharma1 arsharma1 merged commit 588ef58 into google:master Feb 11, 2020
@JamesMTSloan JamesMTSloan deleted the within_tolerance branch February 15, 2020 19:37
lalten added a commit to lalten/openhtf that referenced this pull request Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants