Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set error < 2 when relative error mode
Browse files Browse the repository at this point in the history
yngve-sk committed Oct 4, 2024
1 parent 41aae5d commit 6086201
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ert/unit_tests/config/observations_generator.py
Original file line number Diff line number Diff line change
@@ -183,6 +183,9 @@ def summary_observations(
"error_mode": draw(st.sampled_from(ErrorMode)),
"value": draw(positive_floats),
}

assume(kws["error_mode"] == ErrorMode.ABS or kws["error"] < 2)

time_type = draw(time_types)
if time_type == "date":
date = draw(dates)

0 comments on commit 6086201

Please sign in to comment.