Skip to content

Commit

Permalink
Fixed error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Citi committed Mar 12, 2023
1 parent 6af864e commit f72ea91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion neurokit2/misc/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ def spawn_random_state(rng, n_children=1):
import neurokit2 as nk
master_seed = 42
n_participants = 8
participants_RNGs = nk.misc.spawn_random_state(master_seed, n_children=n_participants)
PPGs = []
for i in range(n_participants):
PPGs.append(nk.ppg_simulate(..., random_state=participants_RNGs[i]))
PPGs.append(nk.ppg_simulate(random_state=participants_RNGs[i]))
"""
rng = check_random_state(rng)

Expand Down
1 change: 0 additions & 1 deletion neurokit2/signal/signal_distort.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def signal_distort(
"""
# Seed the random generator for reproducible results.
rng = check_random_state(random_state)
print(type(rng))

# Make sure that noise_amplitude is a list.
if isinstance(noise_amplitude, (int, float)):
Expand Down

0 comments on commit f72ea91

Please sign in to comment.