Skip to content

Commit

Permalink
Fix two failures on linux-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jan 26, 2025
1 parent 40acbcb commit 01cdb21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pygmt/tests/test_x2sys_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import copy
import platform
import sys
from pathlib import Path
from tempfile import TemporaryDirectory
Expand Down Expand Up @@ -270,7 +271,7 @@ def test_x2sys_cross_region_interpolation_numpoints():
)

assert isinstance(output, pd.DataFrame)
if sys.platform == "darwin":
if platform.machine() == "arm64":
assert output.shape == (3894, 12)
# Check crossover errors (z_X) and mean value of observables (z_M)
npt.assert_allclose(output.z_X.mean(), -138.23215, rtol=1e-4)
Expand Down Expand Up @@ -298,7 +299,7 @@ def test_x2sys_cross_trackvalues():
output = x2sys_cross(tracks=["@tut_ship.xyz"], tag=tag, trackvalues=True)

assert isinstance(output, pd.DataFrame)
if sys.platform == "darwin":
if platform.machine() == "arm64":
assert output.shape == (14374, 12)
# Check mean of track 1 values (z_1) and track 2 values (z_2)
npt.assert_allclose(output.z_1.mean(), -2422.973372, rtol=1e-4)
Expand Down

0 comments on commit 01cdb21

Please sign in to comment.