You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to dynamically set the acceptable validation range of a measurement in run time. so I can't use a measurement decorator to pre-set this value. none of the example code covers this use case. Is there a best way to do this?
Ideally I want a function I call with the measurement constructor and value to log and validate everything at once test.log_measurement(value, htf.Measurement("3p3v_rail").with_validator(validators.InRange(3.2, 3.4), eval_immediately=True)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to dynamically set the acceptable validation range of a measurement in run time. so I can't use a measurement decorator to pre-set this value. none of the example code covers this use case. Is there a best way to do this?
Ideally I want a function I call with the measurement constructor and value to log and validate everything at once
test.log_measurement(value, htf.Measurement("3p3v_rail").with_validator(validators.InRange(3.2, 3.4), eval_immediately=True)
I did find this "dynamic measurements" section in the spintop openhtf documentation, but spintop is highly diverged and not maintained.
https://spintop-openhtf.readthedocs.io/_/downloads/en/latest/pdf/#section.11.5
It also seems pretty hacky. directly touching the test sequence state.
Beta Was this translation helpful? Give feedback.
All reactions