Skip to content

Commit 9503c1d

Browse files
Import msprime directly
Closes #336
1 parent 6f7bfd5 commit 9503c1d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/test_simulated_data.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import sys
2-
1+
import msprime
32
import numpy.testing as nt
43
import pysam
54
import pytest
@@ -9,10 +8,6 @@
98

109

1110
def run_simulation(num_samples=2, ploidy=1, seed=42, sequence_length=100_000):
12-
# Import here to avoid problems on OSX (see below)
13-
# https://github.com/sgkit-dev/bio2zarr/issues/336
14-
import msprime
15-
1611
ts = msprime.sim_ancestry(
1712
num_samples,
1813
population_size=10**4,
@@ -52,8 +47,6 @@ def write_vcf(ts, vcf_path, contig_id="1", indexed=False):
5247
return vcf_path
5348

5449

55-
# https://github.com/sgkit-dev/bio2zarr/issues/336
56-
@pytest.mark.skipif(sys.platform == "darwin", reason="msprime OSX pip packages broken")
5750
class TestTskitRoundTripVcf:
5851
@pytest.mark.parametrize("ploidy", [1, 2, 3, 4])
5952
def test_ploidy(self, ploidy, tmp_path):
@@ -127,8 +120,6 @@ def test_mixed_indexed(self, num_contigs, tmp_path):
127120
self.validate_tss_vcf_list(contig_ids, tss, vcfs, tmp_path)
128121

129122

130-
# https://github.com/sgkit-dev/bio2zarr/issues/336
131-
@pytest.mark.skipif(sys.platform == "darwin", reason="msprime OSX pip packages broken")
132123
class TestIncompatibleContigs:
133124
def test_different_lengths(self, tmp_path):
134125
vcfs = []

0 commit comments

Comments
 (0)