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

GridProperties().from_file uses non-existent parameter name `pfile` #1200

Closed eivindjahren closed 1 month ago

eivindjahren commented 1 month ago

Calling

xtgeo.GridProperties().from_file(initfile, fformat="init", names=props, grid=grd)

will always crash with

TypeError: gridproperties_from_file() got an unexpected keyword argument 'pfile'

due to using the incorrect parameter name pfile:

https://github.com/equinor/xtgeo/blob/5b571e4099b16ad1141f3deeb62b52252784d284/src/xtgeo/grid3d/grid_properties.py#L742-L750