Add checking of transformed values in storage fuzzing#13230
Add checking of transformed values in storage fuzzing#13230eivindjahren merged 3 commits intoequinor:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an additional Hypothesis state-machine rule to the local storage fuzzing tests to exercise/verify behavior around loading transformed parameter values from storage.
Changes:
- Add a new state-machine
@rulethat callsload_parameters(..., transformed=True)and asserts the returned data matches expectations after applying parameter transformations.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13230 +/- ##
==========================================
- Coverage 90.32% 90.31% -0.02%
==========================================
Files 453 453
Lines 31330 31330
==========================================
- Hits 28300 28296 -4
- Misses 3030 3034 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
6639da5 to
71631c4
Compare
| storage_ensemble.save_parameters( | ||
| pl.DataFrame( | ||
| {p.name: [scalar_value]}, | ||
| schema={p.name: pl.Float64}, |
There was a problem hiding this comment.
"realization" column should be part of schema.
xjules
left a comment
There was a problem hiding this comment.
Just a small comment, but otherwise looks fine to me! 🚀
|
There is a typo in the first commit message and squash the second one. |
Parameters would not be set correctly in TestStorage. This fixes that and expands parameters generated to GenKw and Surface.
This also necessitates weaking/updating of some other assertions.
71631c4 to
0a509c4
Compare
git rebase -i main --exec 'just rapid-tests')When applicable