Skip to content

Commit

Permalink
Remove random seeding from test utilities
Browse files Browse the repository at this point in the history
Random seeding is now done explicitly in the unittests, so this is
no longer used.
  • Loading branch information
laurenam committed Aug 28, 2017
1 parent 1613d08 commit 0fda989
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions python/lsst/meas/base/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,20 +472,6 @@ def realize(self, noise, schema, randomSeed=None):


class AlgorithmTestCase(object):
# Some tests depend on the noise realization in the test data or from the
# np.random number generator. In most cases, they are testing that the
# measured flux lies within 2 sigma of the correct value, which we should
# expect to fail sometimes. Some -- but sadly not all -- of these cases
# have been marked with an "rng dependent" comment.
#
# We ensure these tests are provided with data which causes them to pass
# by seeding the np.RNG with this value. It can be over-ridden as
# necessary in subclasses.
randomSeed = 1234

@classmethod
def setUpClass(cls):
np.random.seed(cls.randomSeed)

def makeSingleFrameMeasurementConfig(self, plugin=None, dependencies=()):
"""Convenience function to create a Config instance for SingleFrameMeasurementTask
Expand Down

0 comments on commit 0fda989

Please sign in to comment.