equinor / semeio

Semeio is a collection of jobs and workflow jobs used in ert (https://github.com/equinor/ert).
https://github.com/equinor/semeio
GNU General Public License v3.0
10 stars 27 forks source link

Use macos-latest in github workflow tests #620

Closed larsevj closed 3 months ago

larsevj commented 5 months ago

Resolves #616

larsevj commented 3 months ago

tests/forward_models/overburden_timeshift/test_ots_integration.py fails on macos arm on the following:

    _err = 0.01
    nx = s_horizon.get_nx()
    ny = s_horizon.get_ny()
    arr = to_numpy(s_horizon)
    sh_top_left = arr[: ny // 2 - 1, : nx // 2 - 1].sum()
    sh_bottom_right = arr[ny // 2 :, nx // 2 :].sum()
    assert ((sh_top_left - _err) > 0) == results[0]

you get the following results for sh_top_left for all test cases:

 Linux              |  macos arm
 2015702.6024329471  |  2012214.0447139177
 12344796.313041849  |  12347656.972199338
 1340392.4831519802  |  1337984.4934645826
 0.008223739636816994  |  0.01285521929680931