Skip to content

Commit

Permalink
Modify unit test expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
djkirkham committed Nov 7, 2017
1 parent 13b2002 commit 3f598eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def test_global_data_same_res(self):
src.coord('latitude').guess_bounds()
src.coord('longitude').guess_bounds()
res = regrid_area_weighted(src, src)
self.assertArrayShapeStats(res, (73, 96), 279.945167, 16.345842)
self.assertArrayShapeStats(res, (73, 96), 279.945160, 16.345842)

@tests.skip_data
def test_global_data_subset(self):
Expand All @@ -510,7 +510,7 @@ def test_global_data_subset(self):
dest.add_dim_coord(dest_lon, 1)

res = regrid_area_weighted(src, dest)
self.assertArrayShapeStats(res, (40, 30), 280.979336, 16.640421)
self.assertArrayShapeStats(res, (40, 30), 280.979310, 16.640421)

@tests.skip_data
def test_circular_subset(self):
Expand All @@ -530,7 +530,7 @@ def test_circular_subset(self):
dest.add_dim_coord(dest_lon, 1)

res = regrid_area_weighted(src, dest)
self.assertArrayShapeStats(res, (40, 7), 285.653967, 15.212710)
self.assertArrayShapeStats(res, (40, 7), 285.653960, 15.212710)

@tests.skip_data
def test_non_circular_subset(self):
Expand All @@ -551,7 +551,7 @@ def test_non_circular_subset(self):
dest.add_dim_coord(dest_lon, 1)

res = regrid_area_weighted(src, dest)
self.assertArrayShapeStats(res, (40, 7), 285.550800, 15.190245)
self.assertArrayShapeStats(res, (40, 7), 285.550814, 15.190245)


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
</coord>
</coords>
<cellMethods/>
<data dtype="float64" shape="(5, 18)" state="loaded"/>
<data dtype="float32" shape="(5, 18)" state="loaded"/>
</cube>
</cubes>
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
</coord>
</coords>
<cellMethods/>
<data dtype="float64" shape="(5, 12)" state="loaded"/>
<data dtype="float32" shape="(5, 12)" state="loaded"/>
</cube>
</cubes>
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,6 @@
</coord>
</coords>
<cellMethods/>
<data dtype="float64" shape="(2, 5, 16, 21)" state="loaded"/>
<data dtype="float32" shape="(2, 5, 16, 21)" state="loaded"/>
</cube>
</cubes>

0 comments on commit 3f598eb

Please sign in to comment.