equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 56 forks source link

FIX: Set mpl backend to Agg in Linux only #1151

Closed mferrera closed 5 months ago

mferrera commented 5 months ago

Resolves #794 Resolves #1145

This should receive a simpler fix once xtgeo.plot is fully deprecated. This backend handling should then be pushed upstream to xtgeoviz, cf https://github.com/equinor/xtgeoviz/issues/34.

Changing mpl configuration should be restricted to running on RGS machines to the greatest degree possible, and only when relevant to do so.

This also sets explicit exports from the top-level package with __all__, which should help type checking but needs pruning with xtgeo 4: https://github.com/equinor/xtgeo/issues/1150

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5e72c9d) 80.27% compared to head (4c9a940) 80.28%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1151 +/- ## ======================================= Coverage 80.27% 80.28% ======================================= Files 97 97 Lines 13548 13547 -1 Branches 2172 2172 ======================================= Hits 10876 10876 + Misses 1951 1950 -1 Partials 721 721 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.