Skip to content

Commit

Permalink
Set error < 2 when relative error mode
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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)
Expand Down

0 comments on commit 6086201

Please sign in to comment.