Skip to content

Commit

Permalink
Change random seed to avoid collisions of htmIndex.
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Mar 19, 2021
1 parent dcd9199 commit dac7baf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_functors.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def getDatasetHandle(self, parq):
return self.butler.getDeferred(ref)

def setUp(self):
np.random.seed(1234)
np.random.seed(12345)
self.datasets = ['forced_src', 'meas', 'ref']
self.bands = ['g', 'r']
self.columns = ['coord_ra', 'coord_dec']
Expand Down Expand Up @@ -540,7 +540,6 @@ def testConvertPixelToArcseconds(self):
"""
dipoleSep = 10
ixx = 10
np.random.seed(1234)
testPixelDeltas = np.random.uniform(-100, 100, size=(self.nRecords, 2))
import lsst.afw.table as afwTable
localWcsPlugin = measBase.EvaluateLocalWcsPlugin(
Expand All @@ -551,7 +550,6 @@ def testConvertPixelToArcseconds(self):
for dec in np.linspace(-90, 90, 10):
for x, y in zip(np.random.uniform(2 * 1109.99981456774, size=10),
np.random.uniform(2 * 560.018167811613, size=10)):

center = geom.Point2D(x, y)
wcs = self._makeWcs(dec)
skyOrigin = wcs.pixelToSky(center)
Expand Down

0 comments on commit dac7baf

Please sign in to comment.