Skip to content

Commit

Permalink
DOC: Update deprecated GridProperties examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Nov 24, 2023
1 parent ebd6580 commit 80a3e88
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/xtgeo/grid3d/grid_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ def names(self) -> list[str]:
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> props = GridProperties()
>>> props.from_file(
>>> props = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.INIT",
... fformat="init",
... names=["PERMX"],
Expand Down Expand Up @@ -397,8 +396,7 @@ def props(self) -> list[GridProperty] | None:
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> myprops = GridProperties()
>>> myprops.from_file(
>>> myprops = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.INIT",
... fformat="init",
... names=["PERMX"],
Expand Down Expand Up @@ -443,8 +441,7 @@ def dates(self) -> list[str | None] | None:
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> props = GridProperties()
>>> props.from_file(
>>> props = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.INIT",
... fformat="init",
... names=["PERMX"],
Expand Down Expand Up @@ -584,8 +581,7 @@ def get_actnum(
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> myprops = GridProperties()
>>> myprops.from_file(
>>> myprops = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.INIT",
... fformat="init",
... names=["PERMX"],
Expand Down Expand Up @@ -655,8 +651,7 @@ def from_file(
Example::
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> props = GridProperties()
>>> props.from_file(
>>> props = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.INIT",
... fformat="init",
... names=["PERMX"],
Expand Down Expand Up @@ -716,7 +711,7 @@ def get_dataframe(
>>> import xtgeo
>>> grid = xtgeo.grid_from_file(reek_dir + "/REEK.EGRID")
>>> pps.grid_properties_from_file(
>>> pps = xtgeo.gridproperties_from_file(
... reek_dir + "/REEK.UNRST",
... fformat="unrst",
... names=['SOIL', 'SWAT', 'PRESSURE'],
Expand Down

0 comments on commit 80a3e88

Please sign in to comment.