Skip to content

Commit 4f3bb29

Browse files
committed
test: reduce strenght of initial guess in irls tests
1 parent 676c84c commit 4f3bb29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pytests/test_sparsity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def test_IRLS_data(par):
100100
Gop = MatrixMult(G, dtype=par["dtype"])
101101
x = np.ones(par["nx"]) + par["imag"] * np.ones(par["nx"])
102102
x0 = (
103-
np.random.normal(0, 10, par["nx"])
104-
+ par["imag"] * np.random.normal(0, 10, par["nx"])
103+
np.random.normal(0, 1, par["nx"])
104+
+ par["imag"] * np.random.normal(0, 1, par["nx"])
105105
if par["x0"]
106106
else None
107107
)
@@ -139,8 +139,8 @@ def test_IRLS_datamodel(par):
139139
x[3] = 1
140140
x[par["nx"] - 4] = -1
141141
x0 = (
142-
np.random.normal(0, 10, par["nx"])
143-
+ par["imag"] * np.random.normal(0, 10, par["nx"])
142+
np.random.normal(0, 1, par["nx"])
143+
+ par["imag"] * np.random.normal(0, 1, par["nx"])
144144
if par["x0"]
145145
else None
146146
)

0 commit comments

Comments
 (0)