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

Remove module import/exports from top-level __init__ where appropriate #1150

Open mferrera opened 5 months ago

mferrera commented 5 months ago

There are many instances where modules are imported to the top-level init to be re-exported with a shorter import path. An example:

from xtgeo.surface import regular_surface
# Now can access xtgeo.regular_surface

I suspect these can all be removed without breaking anything, but it's possible that this is a breaking change out in the wild. This change should be grouped into xtgeo 4.0.