Skip to content

Commit

Permalink
Merge pull request #328 from WeilerP/fix/simulation
Browse files Browse the repository at this point in the history
Fix simulation
  • Loading branch information
VolkerBergen committed Jan 20, 2021
2 parents cb59a9a + 37eef37 commit a42491e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scvelo/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def cycle(array, n_vars=None):

noise_level = cycle(noise_level, len(switches) if n_vars is None else n_vars)

n_vars = max(len(switches), len(noise_level)) if n_vars is None else n_vars
n_vars = min(len(switches), len(noise_level)) if n_vars is None else n_vars
U = np.zeros(shape=(len(t), n_vars))
S = np.zeros(shape=(len(t), n_vars))

Expand Down

0 comments on commit a42491e

Please sign in to comment.