Skip to content

Commit

Permalink
Merge pull request #30 from lsst/DM-7379
Browse files Browse the repository at this point in the history
Move random.seed to setUp
  • Loading branch information
fred3m committed Aug 25, 2016
2 parents a6a72f3 + 918449c commit dca5c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testDipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class DipoleAlgorithmTest(lsst.utils.tests.TestCase):
""" A test case for dipole algorithms"""

def setUp(self):
np.random.seed(666)
self.w, self.h = 100, 100 # size of image
self.xc, self.yc = 50, 50 # location of center of dipole

Expand Down Expand Up @@ -354,6 +355,7 @@ class DipoleMeasurementTaskTest(lsst.utils.tests.TestCase):
tested above"""

def setUp(self):
np.random.seed(666)
self.config = ipDiffim.DipoleMeasurementConfig()

def tearDown(self):
Expand All @@ -380,7 +382,6 @@ class TestMemory(lsst.utils.tests.MemoryTestCase):

def setup_module(module):
lsst.utils.tests.init()
np.random.seed(666)

if __name__ == "__main__":
lsst.utils.tests.init()
Expand Down

0 comments on commit dca5c03

Please sign in to comment.