Skip to content

Commit

Permalink
refactor(vtk): remove deprecated export_* functions (modflowpy#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Aug 3, 2023
1 parent 6f2da88 commit ca838b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 550 deletions.
26 changes: 5 additions & 21 deletions flopy/export/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def model_export(
prjfile : str or pathlike, optional if `crs` is specified
ESRI-style projection file with well-known text defining the CRS
for the model grid (must be projected; geographic CRS are not supported).
if fmt is set to 'vtk', parameters of vtk.export_model
if fmt is set to 'vtk', parameters of Vtk initializer
"""
assert isinstance(ml, ModelInterface)
Expand Down Expand Up @@ -698,7 +698,7 @@ def package_export(
prjfile : str or pathlike, optional if `crs` is specified
ESRI-style projection file with well-known text defining the CRS
for the model grid (must be projected; geographic CRS are not supported).
if fmt is set to 'vtk', parameters of vtk.export_package
if fmt is set to 'vtk', parameters of Vtk initializer
Returns
-------
Expand Down Expand Up @@ -771,22 +771,6 @@ def package_export(

vtkobj.add_package(pak, masked_values=masked_values)
vtkobj.write(os.path.join(f, name), kper=kpers)

"""
vtk.export_package(
pak.parent,
pak.name,
f,
nanval=nanval,
smooth=smooth,
point_scalars=point_scalars,
vtk_grid_type=vtk_grid_type,
true2d=true2d,
binary=binary,
kpers=kpers,
)
"""

else:
raise NotImplementedError(f"unrecognized export argument:{f}")

Expand Down Expand Up @@ -1049,7 +1033,7 @@ def transient2d_export(f: Union[str, os.PathLike], t2d, fmt=None, **kwargs):
max_valid : maximum valid value
modelgrid : flopy.discretization.Grid
model grid instance which will supercede the flopy.model.modelgrid
if fmt is set to 'vtk', parameters of vtk.export_transient
if fmt is set to 'vtk', parameters of Vtk initializer
"""

Expand Down Expand Up @@ -1209,7 +1193,7 @@ def array3d_export(f: Union[str, os.PathLike], u3d, fmt=None, **kwargs):
max_valid : maximum valid value
modelgrid : flopy.discretization.Grid
model grid instance which will supercede the flopy.model.modelgrid
if fmt is set to 'vtk', parameters of vtk.export_array
if fmt is set to 'vtk', parameters of Vtk initializer
"""

Expand Down Expand Up @@ -1387,7 +1371,7 @@ def array2d_export(
max_valid : maximum valid value
modelgrid : flopy.discretization.Grid
model grid instance which will supercede the flopy.model.modelgrid
if fmt is set to 'vtk', parameters of vtk.export_array
if fmt is set to 'vtk', parameters of Vtk initializer
"""
assert isinstance(
Expand Down
Loading

0 comments on commit ca838b1

Please sign in to comment.