Skip to content

Commit

Permalink
Updates for latest PyVista
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Oct 6, 2023
1 parent cddb6ef commit 4941737
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PVGeo/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import numpy as np
import pandas as pd
import pyvista as pv
from pyvista.utilities import convert_string_array, get_vtk_type
from pyvista.core.utilities import convert_string_array, get_vtk_type
import vtk
from vtk.util import numpy_support as nps

Expand Down
2 changes: 1 addition & 1 deletion examples/filters-general/array-math.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

###############################################################################
# Create some input data. This can be any `vtkDataObject`
inp = pyvista.UniformGrid((10, 10, 4))
inp = pyvista.ImageData((10, 10, 4))
# Populate the tables
n = 400
arr0 = np.random.random(n)
Expand Down
2 changes: 1 addition & 1 deletion examples/gslib/read-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
###############################################################################
# From inspecting the header, we realize that this dataset is gridded, so let's
# use the :class:`PVGeo.grid.TableToTimeGrid` filter to create a
# :class:`pyvista.UniformGrid` of that dataset.
# :class:`pyvista.ImageData` of that dataset.

# 1200 x, 1750 y, 1 z, 1 t
grid = TableToTimeGrid(extent=(1200, 1750, 1, 1), order="F").apply(table)
Expand Down
2 changes: 1 addition & 1 deletion tests/gslib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_writer(self):
self.assertTrue(np.allclose(wtbl.CellData[i], wrd.CellData[i]))

def test_sgems_grid_writer_no_data(self):
grid = pyvista.UniformGrid((10, 10, 10), (2, 2, 2))
grid = pyvista.ImageData((10, 10, 10), (2, 2, 2))
writer = WriteImageDataToSGeMS()
filename = os.path.join(self.test_dir, 'test-writer-no-data.dat')
writer.SetFileName(filename)
Expand Down

0 comments on commit 4941737

Please sign in to comment.