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

debug

parent 5602a97b
Pipeline #190 skipped
...@@ -237,9 +237,12 @@ class SStream(object): ...@@ -237,9 +237,12 @@ class SStream(object):
# add random noise to avoid any issue due to zeros # add random noise to avoid any issue due to zeros
np.random.seed(0) np.random.seed(0)
x[:, 0] += 0.0001 * np.random.randn(x.shape[0]) if x.ndim == 1:
if x.shape[1] == 2: x += 0.0001 * np.random.randn(x.shape[0])
x[:, 1] += 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) (yield None)
idx = 0 idx = 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