test.test_modulation_factor

Unit test for the modulation factor facility.

ximpol.test.test_modulation_factor.GPD_MODF_FILE_PATH = '/home/docs/checkouts/readthedocs.org/user_builds/ximpol/checkouts/latest/ximpol/detector/data/modfact_hedme8020_1atm_1cm_mng.asc'

We explictely set the random seed to have reproducible results.

class ximpol.test.test_modulation_factor.TestModulationFactor(methodName='runTest')[source]

Unit test for xModulationFactor.

classmethod setUpClass()[source]

Setup—here we essentially create the modulation factor.

test_constant(num_events=1000000, polarization_degree=1.0, polarization_angle=0.3490658503988659)[source]

Test the modulation factor as a random number generator when both the polarization angle and degrees are energy- and time-independent.