Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ install:

# Customise the testing environment
# ---------------------------------
- conda config --add channels scitools
- conda config --add channels conda-forge
- PACKAGES="$PACKAGES cython pillow nose pep8 proj4 pyshp shapely six requests pyepsg owslib"
- conda install --quiet $PACKAGES

Expand Down
4 changes: 2 additions & 2 deletions lib/cartopy/tests/mpl/test_img_transform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2011 - 2016, Met Office
# (C) British Crown Copyright 2011 - 2017, Met Office
#
# This file is part of cartopy.
#
Expand Down Expand Up @@ -91,7 +91,7 @@ def test_different_dims(self):
target_proj, target_x, target_y)


@ImageTesting(['regrid_image'], tolerance=0.4)
@ImageTesting(['regrid_image'], tolerance=0.7)
def test_regrid_image():
# Source data
fname = os.path.join(config["repo_data_dir"], 'raster', 'natural_earth',
Expand Down
6 changes: 3 additions & 3 deletions lib/cartopy/tests/mpl/test_mpl_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2011 - 2016, Met Office
# (C) British Crown Copyright 2011 - 2017, Met Office
#
# This file is part of cartopy.
#
Expand Down Expand Up @@ -308,7 +308,7 @@ def test_pcolormesh_global_with_wrap3():
ax.set_global() # make sure everything is visible


@ImageTesting(['pcolormesh_limited_area_wrap'])
@ImageTesting(['pcolormesh_limited_area_wrap'], tolerance=0.7)
def test_pcolormesh_limited_area_wrap():
# make up some realistic data with bounds (such as data from the UM's North
# Atlantic Europe model)
Expand All @@ -335,7 +335,7 @@ def test_pcolormesh_limited_area_wrap():
# draw the same plot, only more zoomed in, and using the 2d versions
# of the coordinates (just to test that 1d and 2d are both suitably
# being fixed)
ax = plt.subplot(223, projection=ccrs.PlateCarree(180))
ax = plt.subplot(223, projection=ccrs.PlateCarree())
plt.pcolormesh(x, y, data, transform=rp, cmap='Set1')
ax.coastlines()
ax.set_extent([-70, 0, 0, 80])
Expand Down
10 changes: 5 additions & 5 deletions lib/cartopy/tests/test_crs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2011 - 2016, Met Office
# (C) British Crown Copyright 2011 - 2017, Met Office
#
# This file is part of cartopy.
#
Expand Down Expand Up @@ -89,10 +89,10 @@ def test_osgb(self):
def test_epsg(self):
uk = ccrs.epsg(27700)
self.assertEqual(uk.epsg_code, 27700)
self.assertEqual(uk.x_limits, (-84667.135022467002,
676354.14167904831))
self.assertEqual(uk.y_limits, (-2957.1831134549138,
1242951.4397385262
self.assertEqual(uk.x_limits, (-84667.135022467062,
676354.14167904819))
self.assertEqual(uk.y_limits, (-2957.1831134535023,
1242951.4397385279
))
self.assertEqual(uk.threshold, 7610.2127670151531)
self._check_osgb(uk)
Expand Down