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

debug

parent 5602a97b
Pipeline #190 skipped
......@@ -237,6 +237,9 @@ class SStream(object):
# add random noise to avoid any issue due to zeros
np.random.seed(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])
......
Supports Markdown
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