Skip to content

Commit 2e745c7

Browse files
committed
test: fix some test to work with a variety of nranks
1 parent a4406f9 commit 2e745c7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/test_fredholm.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
par1 = {
19-
"nsl": 6,
19+
"nsl": 12,
2020
"ny": 6,
2121
"nx": 4,
2222
"nz": 5,
@@ -26,7 +26,7 @@
2626
"dtype": "float32",
2727
} # real, saved Gt
2828
par2 = {
29-
"nsl": 6,
29+
"nsl": 12,
3030
"ny": 6,
3131
"nx": 4,
3232
"nz": 5,
@@ -36,7 +36,7 @@
3636
"dtype": "float32",
3737
} # real, unsaved Gt
3838
par3 = {
39-
"nsl": 6,
39+
"nsl": 12,
4040
"ny": 6,
4141
"nx": 4,
4242
"nz": 5,
@@ -46,7 +46,7 @@
4646
"dtype": "complex64",
4747
} # complex, saved Gt
4848
par4 = {
49-
"nsl": 6,
49+
"nsl": 12,
5050
"ny": 6,
5151
"nx": 4,
5252
"nz": 5,
@@ -56,7 +56,7 @@
5656
"dtype": "complex64",
5757
} # complex, unsaved Gt
5858
par5 = {
59-
"nsl": 6,
59+
"nsl": 12,
6060
"ny": 6,
6161
"nx": 4,
6262
"nz": 1,
@@ -66,7 +66,7 @@
6666
"dtype": "float32",
6767
} # real, saved Gt, nz=1
6868
par6 = {
69-
"nsl": 6,
69+
"nsl": 12,
7070
"ny": 6,
7171
"nx": 4,
7272
"nz": 1,

tests/test_linearop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,4 @@ def test_adj_mpilinop(par):
351351
VStack = pylops.VStack(ops=[(i + 1) * Sop for i in range(size)])
352352
FullOp = VStack @ Fop
353353
y_np = FullOp.H @ x_global
354-
assert_allclose(y, y_np.flatten(), rtol=1e-14)
354+
assert_allclose(y, y_np.flatten(), rtol=1e-12)

0 commit comments

Comments
 (0)