Closed bdestombe closed 2 years ago
In this case the issue was some very small difference in the botm numpy array (dtype np.float64) from the gridprops dictionary. On my computer the cache was created using the value -13.60151824536105 while the new value was -13.601518245360648. I think this comes from preprocessing of the botm array where nan values are filled using interpolation.
Using np.allclose
to compare the numpy arrays solves this issue.
Creating tests for this is a good idea although maybe not so easy. I will leave this issue open so we can decide later if we want to do this.
@OnnoEbbens I think you fixed this, right?
And writing the tests for the cache functions still remains?
And writing the tests for the cache functions still remains?
Correct!
Some tests were added for caching.
When I run the Bergen model twice, not all cached data is reused, as can be seen below.