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

Deprecate `scan_keywords` usage from `_gridprops_import_eclrun.py` and refactor #1094

Open mferrera opened 9 months ago

mferrera commented 9 months ago

When importing Eclipse properties from INIT or restart files, keywords and dates are scanned and used in _gridprops_import_eclrun.py.

With scan_keywords functionality being deprecated from the GridProperties class and replaced otherwise we could split functionality used for this out of _grid3d_utils.py and directly into this file. In doing so we should be able to clean out some redundant code and place it where it is needed.

Then when we release xtgeo 4.0 we could fully remove _grid3d_utils.py.