tests module¶
-
class
tests.
BaseForTestsWithOutdir
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
outdir
= 'TestData'¶
-
-
class
tests.
BaseForTestsWithData
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithOutdir
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
outdir
= 'TestData'¶
-
-
class
tests.
TestInjectionParametersGenerator
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithOutdir
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestInjectionParametersGenerator'¶
-
class_to_test
¶
-
-
class
tests.
TestAllSkyInjectionParametersGenerator
(methodName='runTest')[source]¶ Bases:
tests.TestInjectionParametersGenerator
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestAllInjectionParametersGenerator'¶
-
class_to_test
¶ alias of
pyfstat.make_sfts.AllSkyInjectionParametersGenerator
-
-
class
tests.
TestWriter
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestWriter'¶
-
writer_class_to_test
¶ alias of
pyfstat.make_sfts.Writer
-
signal_parameters
= {'Alpha': 0.5, 'Delta': 1.2, 'F0': 30, 'F1': -1e-10, 'F2': 0, 'cosi': 0, 'h0': 5.0, 'phi': 0, 'psi': 0}¶
-
-
class
tests.
TestWriterOtherTsft
(methodName='runTest')[source]¶ Bases:
tests.TestWriter
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestWriterOtherTsft'¶
-
writer_class_to_test
¶ alias of
pyfstat.make_sfts.Writer
-
-
class
tests.
TestBinaryModulatedWriter
(methodName='runTest')[source]¶ Bases:
tests.TestWriter
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestBinaryModulatedWriter'¶
-
writer_class_to_test
¶
-
signal_parameters
= {'Alpha': 0.5, 'Delta': 1.2, 'F0': 30, 'F1': -1e-10, 'F2': 0, 'argp': 0.3, 'asini': 10.0, 'cosi': 0, 'ecc': 0.5, 'h0': 5.0, 'period': 3888000.0, 'phi': 0, 'psi': 0, 'tp': 700001800.0}¶
-
-
class
tests.
TestGlitchWriter
(methodName='runTest')[source]¶ Bases:
tests.TestWriter
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestGlitchWriter'¶
-
writer_class_to_test
¶ alias of
pyfstat.make_sfts.GlitchWriter
-
-
class
tests.
TestReadParFile
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithOutdir
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestReadParFile'¶
-
-
class
tests.
TestPredictFstat
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithOutdir
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestPredictFstat'¶
-
-
class
tests.
TestBaseSearchClass
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
class
tests.
TestComputeFstat
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestComputeFstat'¶
-
-
class
tests.
TestComputeFstatNoNoise
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestComputeFstatSinglePointNoNoise'¶
-
sqrtSX
= 0¶
-
-
class
tests.
TestSearchForSignalWithJumps
(methodName='runTest')[source]¶ Bases:
tests.TestBaseSearchClass
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
class
tests.
TestSemiCoherentSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestSemiCoherentSearch'¶
-
detectors
= 'H1,L1'¶
-
nsegs
= 2¶
-
-
class
tests.
TestSemiCoherentGlitchSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestSemiCoherentGlitchSearch'¶
-
dtglitch
= 3600¶
-
Band
= 1¶
-
-
class
tests.
BaseForMCMCSearchTests
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestMCMCSearch'¶
-
Band
= 1¶
-
-
class
tests.
TestMCMCSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForMCMCSearchTests
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestMCMCSearch'¶
-
-
class
tests.
TestMCMCSemiCoherentSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForMCMCSearchTests
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestMCMCSemiCoherentSearch'¶
-
-
class
tests.
TestMCMCFollowUpSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForMCMCSearchTests
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestMCMCFollowUpSearch'¶
-
duration
= 864000¶
-
h0
= 0.1¶
-
-
class
tests.
TestMCMCTransientSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForMCMCSearchTests
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestMCMCTransientSearch'¶
-
duration
= 86400¶
-
-
class
tests.
TestGridSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestGridSearch'¶
-
F0s
= [29.999, 30.001, 0.0001]¶
-
F1s
= [-1e-10, 0, 1e-11]¶
-
Band
= 0.5¶
-
-
class
tests.
TestTransientGridSearch
(methodName='runTest')[source]¶ Bases:
tests.BaseForTestsWithData
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
label
= 'TestTransientGridSearch'¶
-
F0s
= [29.95, 30.05, 0.01]¶
-
Band
= 0.2¶
-