Skip to content

Commit

Permalink
x2sys_cross returns different outputs on M1/M2 and Intel chipes
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 17, 2024
1 parent 6a6e940 commit 78743da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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 @@ -55,7 +56,10 @@ def test_x2sys_cross_input_file_output_file():
assert output is None # check that output is None since outfile is set
assert outfile.stat().st_size > 0 # check that outfile exists at path
result = pd.read_csv(outfile, sep="\t", comment=">", header=2)
assert result.shape == (14374, 12) if sys.platform == "darwin" else (14338, 12)
if sys.platform == "darwin" and platform.processor() == "arm":
assert result.shape == (14374, 12)
else:
assert result.shape == (14338, 12)
columns = list(result.columns)
assert columns[:6] == ["# x", "y", "i_1", "i_2", "dist_1", "dist_2"]
assert columns[6:] == ["head_1", "head_2", "vel_1", "vel_2", "z_X", "z_M"]
Expand Down

0 comments on commit 78743da

Please sign in to comment.