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
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- ci/envs/311-conda-forge.yaml
- ci/envs/312-latest-conda-forge.yaml
include:
- os: macos-latest
- os: macos-13
environment-file: ci/envs/312-latest-conda-forge.yaml
- os: macos-14 # apple silicon
- os: macos-latest # apple silicon
environment-file: ci/envs/312-latest-conda-forge.yaml
- os: windows-latest
environment-file: ci/envs/312-latest-conda-forge.yaml
Expand Down
10 changes: 5 additions & 5 deletions tests/test_cx.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ def test_add_basemap_query():
ax_extent = (x1, x2, y1, y2)
assert ax.axis() == ax_extent

assert ax.images[0].get_array().sum() == 64691220
assert ax.images[0].get_array().sum() == 64685390
assert ax.images[0].get_array().shape == (256, 256, 4)
assert_array_almost_equal(ax.images[0].get_array()[:, :, :3].mean(), 244.03656)
assert_array_almost_equal(ax.images[0].get_array().mean(), 246.77742)
assert_array_almost_equal(ax.images[0].get_array()[:, :, :3].mean(), 244.03656, decimal=0)
assert_array_almost_equal(ax.images[0].get_array().mean(), 246.77742, decimal=0)


@pytest.mark.network
Expand Down Expand Up @@ -531,7 +531,7 @@ def test_add_basemap_overlay():
assert_array_almost_equal(ax.images[0].get_array().mean(), 217.8021049, decimal=0)

# check totals on overaly (mostly transparent labels) layer
assert ax.images[1].get_array().sum() == pytest.approx(1603214, rel=0.1)
assert ax.images[1].get_array().sum() == pytest.approx(1677372, rel=0.1)
assert ax.images[1].get_array().shape == (256, 256, 4)
assert_array_almost_equal(ax.images[1].get_array().mean(), 6.1157760, decimal=0)

Expand All @@ -546,7 +546,7 @@ def test_add_basemap_overlay():

# check that z-order of overlay is higher than that of base layer
assert ax.images[0].zorder > ax.images[1].zorder
assert ax.images[0].get_array().sum() == pytest.approx(1603214, rel=0.1)
assert ax.images[0].get_array().sum() == pytest.approx(1677372, rel=0.1)
assert ax.images[1].get_array().sum() == pytest.approx(57095515, rel=0.1)


Expand Down