Skip to content

Commit

Permalink
Tests: remove tests with np.int which is a deprecated alias for built…
Browse files Browse the repository at this point in the history
…in int
  • Loading branch information
MuellerSeb committed Mar 22, 2021
1 parent 3f3a3ea commit 66047d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions tests/test_variogram_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ def test_ints(self):
gamma = gs.vario_estimate_axis(z)
self.assertAlmostEqual(gamma[1], 50.0, places=4)

def test_np_int(self):
z = np.array((10, 20, 30, 40), dtype=np.int)
gamma = gs.vario_estimate_axis(z)
self.assertAlmostEqual(gamma[1], 50.0, places=4)

def test_mixed(self):
z = np.array(
(41.2, 40.2, 39.7, 39.2, 40.1, 38.3, 39.1, 40.0, 41.1, 40.3),
Expand Down
7 changes: 0 additions & 7 deletions tests/test_variogram_unstructured.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ def test_ints(self):
bin_centres, gamma = gs.vario_estimate([x], z, bins)
self.assertAlmostEqual(gamma[0], 50.0, places=4)

def test_np_int(self):
x = np.arange(1, 5, 1, dtype=np.int)
z = np.array((10, 20, 30, 40), dtype=np.int)
bins = np.arange(1, 11, 1, dtype=np.int)
bin_centres, gamma = gs.vario_estimate([x], z, bins)
self.assertAlmostEqual(gamma[0], 50.0, places=4)

def test_mixed(self):
x = np.arange(1, 11, 1, dtype=np.double)
z = np.array(
Expand Down

0 comments on commit 66047d6

Please sign in to comment.