Skip to content

Commit d41e15e

Browse files
committed
separate test data for macOS and linux (RAxML-NG yields slightly different results)
1 parent f25caf3 commit d41e15e

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pathlib
2+
import platform
23

34
import pandas as pd
45
import pytest
@@ -8,7 +9,15 @@
89

910
from .test_config import RAXMLNG_COMMAND
1011

11-
df = pd.read_parquet("tests/data/msa_test_data.parquet")
12+
# RAxML-NG results (RF-Distance, number of unique topologies) and consequently the predicted difficulties
13+
# are slightly different on MacOS versus on Linux (due to the RNG in RAxML-NG). Therefore, we need to
14+
# load different test data depending on the platform. Note that the test data are identical except for the
15+
# RF-Distance, number of unique topologies, and predicted difficulties.
16+
if platform.system() == "Darwin":
17+
df = pd.read_parquet("tests/data/msa_test_data_macOS.parquet")
18+
else:
19+
df = pd.read_parquet("tests/data/msa_test_data_linux.parquet")
20+
1221
df["msa_file"] = df["msa_file"].apply(
1322
lambda x: pathlib.Path.cwd() / "tests" / "data" / x
1423
)
16.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)