:py:mod:`test_transform_utils` ============================== .. py:module:: test_transform_utils Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: test_transform_utils.TestMetadata test_transform_utils.TestRejector test_transform_utils.TestMagErrorSimulator test_transform_utils.TestMagErrorSimulatorTorch Functions ~~~~~~~~~ .. autoapisummary:: test_transform_utils.test_get_bands_in_x .. py:class:: TestMetadata(methodName='runTest') Bases: :py:obj:`unittest.TestCase` A suite of tests verifying metadata computation .. py:method:: test_correctness() .. py:class:: TestRejector(methodName='runTest') Bases: :py:obj:`unittest.TestCase` A suite of tests verifying the magnitude Rejector methods .. py:method:: setUpClass() :classmethod: Hook method for setting up class fixture before running tests in the class. .. py:method:: test_default() Test no input (defaults), which should do nothing .. py:method:: test_min_only() Test when only min_vals is provided, partial or full .. py:method:: test_max_only() Test when only max_vals is provided, partial or full .. py:function:: test_get_bands_in_x() .. py:class:: TestMagErrorSimulator(methodName='runTest') Bases: :py:obj:`unittest.TestCase` A suite of tests verifying the magnitude MagErrorSimulator methods .. py:method:: setUpClass() :classmethod: Set global defaults for tests .. py:method:: test_basic() Verify correspondence with same analytic function in Colab notebook .. py:method:: test_r_band_lit() Test if calculate_photo_err() r band values match Table 3 values for mags 21-24, single visit and 10 year depths .. py:method:: test_sigma_rand_m_5() Test sigma_rand = 0.2 for mag = m_5 (definition of 5-sigma depth) .. py:method:: test_sigma_rand_infinite_brightness() Test that sigma_rand = 0 for mag = -inf .. py:method:: test_shapes_call() Test output shapes of __call__ given input x .. py:method:: test_shapes_get_sigmas() Test output shapes of get_sigmas given input mags .. py:method:: tearDownClass() :classmethod: Hook method for deconstructing the class fixture after running all tests in the class. .. py:class:: TestMagErrorSimulatorTorch(methodName='runTest') Bases: :py:obj:`unittest.TestCase` A suite of tests comparing MagErrorSimulator with MagErrorSimulatorTorch .. py:method:: setUpClass() :classmethod: Set global defaults for tests .. py:method:: test_basic() Verify correspondence with same analytic function in Collab notebook .. py:method:: test_r_band_lit() Test if calculate_photo_err() r band values match Table 3 values for mags 21-24, single visit and 10 year depths .. py:method:: test_sigma_rand_m_5() Test sigma_rand = 0.2 for mag = m_5 (definition of 5-sigma depth) .. py:method:: test_sigma_rand_infinite_brightness() Test that sigma_rand = 0 for mag = -inf .. py:method:: test_shapes_call() Test output shapes of __call__ given input x .. py:method:: test_shapes_get_sigmas() Test output shapes of get_sigmas given input mags .. py:method:: tearDownClass() :classmethod: Hook method for deconstructing the class fixture after running all tests in the class.