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
110 stars 56 forks source link

ENH: Add `list_gridproperties` function #1092

Closed mferrera closed 9 months ago

mferrera commented 9 months ago

Resolves #1084

This function helps to replace the now-deprecated scan_keywords static method. It can be used to get a list of grid properties within a roff file or within an Eclipse init (static properties) or restart (dynamic properties) file.

codecov-commenter commented 9 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (56d76c3) 80.09% compared to head (964bed5) 80.12%.

Files Patch % Lines
src/xtgeo/grid3d/_gridprops_import_eclrun.py 73.91% 3 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1092 +/- ## ========================================== + Coverage 80.09% 80.12% +0.02% ========================================== Files 94 94 Lines 13426 13459 +33 Branches 2195 2203 +8 ========================================== + Hits 10754 10784 +30 - Misses 1946 1947 +1 - Partials 726 728 +2 ```

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