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 57 forks source link

CLN: Ruff simplify #1087

Closed janbjorge closed 10 months ago

janbjorge commented 10 months ago

Adresses #1086

janbjorge commented 10 months ago

I think context managers is something we need to get really good at considering the amount of IO we deal with. I have a weak hunch that the memory bloat we see in xtgeo is due to poorly manged IO.