Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Jan 1, 2024
1 parent 9649ad3 commit 8863746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions tests/filters_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,6 @@ def test_conversion(self):
wpdi = dsa.WrapDataObject(converted)
points = np.array(wpdi.Points)
self.assertTrue(np.allclose(points, data[['x_utm', 'y_utm', 'altitude']]))
return True


###############################################################################
Expand Down Expand Up @@ -910,7 +909,6 @@ def test(self):
data = PVGeo.model_build.CreateTensorMesh().apply()
thresh = PercentThreshold(percent=75).apply(data, 'Random Data')
self.assertTrue(isinstance(thresh, vtk.vtkUnstructuredGrid))
return True


###############################################################################
Expand Down Expand Up @@ -938,7 +936,6 @@ def test(self):
# Make sure there is a new 'Colors' Array
arr = colored.GetPointData().GetArray('Colors')
self.assertTrue(isinstance(arr, vtk.vtkUnsignedCharArray))
return True


###############################################################################
Expand All @@ -962,7 +959,6 @@ def test(self):
mesh = BuildSurfaceFromPoints(zcoords=z_range).apply(poly)
assert isinstance(mesh, pyvista.StructuredGrid)
assert mesh.dimensions == (len(z_range), len(points), 1)
return True


###############################################################################
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.ImageData((10, 10, 10), (2, 2, 2))
grid = pyvista.ImageData(dimensions=(10, 10, 10), spacing=(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 8863746

Please sign in to comment.