Skip to content

Commit

Permalink
Merge pull request #400 from lsst/tickets/DM-47538
Browse files Browse the repository at this point in the history
Fix seed placement in Gaussian process unit test.
  • Loading branch information
PFLeget authored Nov 13, 2024
2 parents 7ab3e17 + d2bbdca commit 1a0ca8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_gp_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def setUp(self):
self.correlation_length = 10.0
self.white_noise = 1e-5

np.random.seed(42)

x1 = np.random.uniform(0, 99, npoints)
x2 = np.random.uniform(0, 120, npoints)
coord1 = np.array([x1, x2]).T
Expand All @@ -80,7 +82,6 @@ def setUp(self):
# on a 100 * 100 is to slow. So generate 1e3 points
# and then interpolate it with a GP to do data augmentation.

np.random.seed(42)
z1 = np.random.multivariate_normal(np.zeros(npoints), kernel)

x1 = np.linspace(0, 99, 100)
Expand Down

0 comments on commit 1a0ca8c

Please sign in to comment.