Skip to content

Commit

Permalink
tests: fix cressie tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Mar 28, 2020
1 parent 0649e61 commit cbcef65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_variogram_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_list(self):
def test_cressie_1d(self):
z = [41.2, 40.2, 39.7, 39.2, 40.1, 38.3, 39.1, 40.0, 41.1, 40.3]
gamma = variogram.vario_estimate_structured(z, estimator="cressie")
self.assertAlmostEqual(gamma[1], 1.546, places=3)
self.assertAlmostEqual(gamma[1], 1.546 / 2.0, places=3)

def test_1d(self):
# literature values
Expand Down Expand Up @@ -169,8 +169,7 @@ def test_uncorrelated_cressie_2d(self):
field, direction="y", estimator="cressie"
)

# TODO figure out what is going on here
var = 0.177
var = 1.0 / 12.0
self.assertAlmostEqual(gamma_x[0], 0.0, places=1)
self.assertAlmostEqual(gamma_x[len(gamma_x) // 2], var, places=1)
self.assertAlmostEqual(gamma_y[0], 0.0, places=1)
Expand Down

0 comments on commit cbcef65

Please sign in to comment.