Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions sgkit/tests/test_association.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from pathlib import Path
from typing import Any, Dict, List, Optional, Sequence, Tuple

Expand All @@ -24,6 +23,9 @@

from .test_regenie import load_covariates, load_traits

sm = pytest.importorskip("statsmodels.api")
from statsmodels.regression.linear_model import RegressionResultsWrapper


def _dask_cupy_to_numpy(x):
if da.utils.is_cupy_type(x):
Expand All @@ -33,15 +35,6 @@ def _dask_cupy_to_numpy(x):
return x


with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
# Ignore: DeprecationWarning: Using or importing the ABCs from 'collections'
# instead of from 'collections.abc' is deprecated since Python 3.3,
# and in 3.9 it will stop working
import statsmodels.api as sm
from statsmodels.regression.linear_model import RegressionResultsWrapper


def _generate_test_data(
n: int = 100,
m: int = 10,
Expand Down
Loading