Skip to content

Commit

Permalink
PassThroughTransform is now the default
Browse files Browse the repository at this point in the history
  • Loading branch information
jdswinbank committed Feb 25, 2015
1 parent 887d2e2 commit 2c3796e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testTransform.py
Expand Up @@ -233,12 +233,12 @@ def testInterface(self):

# Each source should have been measured & transformed appropriately.
for measSrc, trSrc in zip(measSrcs, trSrcs):
# The TrivialMeasurement should be transformed
self.assertEqual(trSrc[PLUGIN_NAME], measSrc[PLUGIN_NAME])
self.assertEqual(trSrc[PLUGIN_NAME + "_transform"], -1.0 * measSrc[PLUGIN_NAME])

# Data from measurements using a NullTransform should not be copied.
self.assertGreater(len(measSrcs.schema.extract("base_SdssCentroid*")), 0)
self.assertEqual(len(trSrcs.schema.extract("base_SdssCentroid*")), 0)
# The SdssCentroid should be copied (the default behaviour)
for field in measSrcs.schema.extract("base_SdssCentroid*").keys():
self.assertTrue(trSrc.get(field) == measSrc.get(field) or math.isnan(trSrc.get(field)))


def suite():
Expand Down

0 comments on commit 2c3796e

Please sign in to comment.