Commit 7b170c26 authored by Anthony Larcher's avatar Anthony Larcher

debug

parent 5602a97b
Pipeline #190 skipped
......@@ -237,9 +237,12 @@ class SStream(object):
# add random noise to avoid any issue due to zeros
np.random.seed(0)
x[:, 0] += 0.0001 * np.random.randn(x.shape[0])
if x.shape[1] == 2:
x[:, 1] += 0.0001 * np.random.randn(x.shape[0])
if x.ndim == 1:
x += 0.0001 * np.random.randn(x.shape[0])
elif x.ndim == 2:
x[:, 0] += 0.0001 * np.random.randn(x.shape[0])
if x.shape[1] == 2:
x[:, 1] += 0.0001 * np.random.randn(x.shape[0])
(yield None)
idx = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment