Skip to content

Commit 089ea5e

Browse files
committed
fix tutorial gen
1 parent ccacc3a commit 089ea5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libensemble/tests/functionality_tests/sine_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def gen_random_sample(InputArray, persis_info, gen_specs):
1616
# Create empty array of "batch_size" zeros. Array dtype should match "out" fields
1717
OutputArray = np.zeros(batch_size, dtype=gen_specs["out"])
1818

19-
# Set the "x" output field to contain random numbers, using random stream
20-
OutputArray["x"] = persis_info["rand_stream"].uniform(lower, upper, (batch_size, num))
19+
# Set the "x" output field to contain random numbers
20+
OutputArray["x"] = np.random.uniform(lower, upper, (batch_size, num))
2121

2222
# Send back our output and persis_info
2323
return OutputArray, persis_info

0 commit comments

Comments
 (0)