Skip to content

Commit 0cd8d78

Browse files
committed
Try out simpler test case
1 parent 27b467c commit 0cd8d78

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ jobs:
2828
pip install numpy pytest threadpoolctl
2929
- name: Run array test
3030
run: pytest
31-
env:
32-
OPENBLAS_CORETYPE: NEOVERSEV1

test/python/test_array.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
#
77
# Licensed under the MIT License
88

9-
from pathlib import Path
10-
119
import numpy as np
1210

1311

1412
def test_array() -> None:
1513
np.show_runtime()
16-
test_array_path = Path(__file__).parent / "test_array.npy"
17-
test_array = np.load(test_array_path)
18-
norm = np.linalg.norm(test_array)
14+
a = np.arange(20000) / 50000
15+
b = a + 1j * np.roll(np.flip(a), 12345)
16+
norm = np.linalg.norm(b)
1917
print(f"norm = {norm}")
20-
assert np.isclose(norm, 1.0)
18+
assert np.isclose(norm, 46.18628948075393)

0 commit comments

Comments
 (0)