From 52198789443f3354ba2285134bba40ea1d348315 Mon Sep 17 00:00:00 2001 From: selmanozleyen Date: Thu, 5 Feb 2026 13:47:33 +0100 Subject: [PATCH 1/2] fix [tool.pytest.ini_options] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a63cac86..79dafe73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -150,7 +150,7 @@ lint.per-file-ignores."docs/*" = [ "I" ] lint.per-file-ignores."tests/*" = [ "D" ] lint.pydocstyle.convention = "numpy" -[tool.pytest.ini_option] +[tool.pytest.ini_options] markers = [ "gpu: mark test to run on GPU" ] testpaths = [ "tests" ] xfail_strict = true From da62e58ca5ff44123e2b305963935dc53ffdd55a Mon Sep 17 00:00:00 2001 From: selmanozleyen Date: Thu, 5 Feb 2026 19:09:11 +0100 Subject: [PATCH 2/2] Using .numpy() on a PyTorch tensor is the recommended way to convert to a NumPy array --- tests/test_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dataset.py b/tests/test_dataset.py index d812c4d2..b3a2c073 100644 --- a/tests/test_dataset.py +++ b/tests/test_dataset.py @@ -413,7 +413,7 @@ def test_3d( import torch assert isinstance(x, torch.Tensor) - x = np.array(x.cpu()) + x = x.cpu().numpy() x_list.append(x) idx_list.append(idxs.ravel()) x = np.vstack(x_list)