Skip to content

Commit

Permalink
Doc: fix pyvista deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 7, 2024
1 parent d221248 commit ba5bfb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/01_random_field/06_pyvista_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
# We create a structured grid with PyVista containing 50 segments on all three
# axes each with a length of 2 (whatever unit).

dim, spacing = (50, 50, 50), (2, 2, 2)
grid = pv.ImageData(dim, spacing)
dims, spacing = (50, 50, 50), (2, 2, 2)
grid = pv.ImageData(dimensions=dims, spacing=spacing)

###############################################################################
# Now we set up the SRF class as always. We'll use an anisotropic model.
Expand Down
2 changes: 1 addition & 1 deletion examples/04_vector_field/01_3d_vector_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
###############################################################################
# create a uniform grid with PyVista
dims, spacing, origin = (40, 30, 10), (1, 1, 1), (-10, 0, 0)
mesh = pv.ImageData(dims=dims, spacing=spacing, origin=origin)
mesh = pv.ImageData(dimensions=dims, spacing=spacing, origin=origin)

###############################################################################
# create an incompressible random 3d velocity field on the given mesh
Expand Down

0 comments on commit ba5bfb1

Please sign in to comment.