Skip to content

Commit f1b76ad

Browse files
enforce python engine in wgs_data_catalog to ensure thread-safety in CI
1 parent 1e89745 commit f1b76ad

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,4 @@ jobs:
3333
run: pip install "${{ matrix.numpy-version }}" .[dev]
3434

3535
- name: Run unit tests
36-
env:
37-
OMP_NUM_THREADS: 1
38-
OPENBLAS_NUM_THREADS: 1
39-
MKL_NUM_THREADS: 1
40-
VECLIB_MAXIMUM_THREADS: 1
41-
NUMEXPR_NUM_THREADS: 1
4236
run: pytest -v tests --ignore tests/integration --typeguard-packages=malariagen_data,malariagen_data.anoph

malariagen_data/anoph/sample_metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,9 @@ def wgs_data_catalog(self, sample_set: base_params.sample_set):
992992
# Load data catalog.
993993
path = f"{self._base_path}/{release_path}/metadata/general/{sample_set}/wgs_snp_data.csv"
994994
with self._fs.open(path) as f:
995-
df = pd.read_csv(f, na_values="")
995+
df = pd.read_csv(
996+
f, na_values="", engine="python"
997+
) # Force python engine to ensure thread-safety
996998

997999
# Normalise columns.
9981000
df = df[

0 commit comments

Comments
 (0)