Exemplo n.º 1
0
 def test_phaseogram_input_norm(self):
     evfile = self.dum
     # to1
     main_phaseogram([
         evfile, '--periodogram', 'events_Z2n' + HEN_FILE_EXTENSION,
         '--test', '--norm', 'to1'
     ])
     # mediansub
     main_phaseogram([
         evfile, '--periodogram', 'events_Z2n' + HEN_FILE_EXTENSION,
         '--test', '--norm', 'mediansub'
     ])
     # garbage
     with pytest.warns(UserWarning) as record:
         main_phaseogram([
             evfile, '--periodogram', 'events_Z2n' + HEN_FILE_EXTENSION,
             '--test', '--norm', 'arsdfajl'
         ])
         assert np.any([
             "Profile normalization arsdfajl" in r.message.args[0]
             for r in record
         ])
Exemplo n.º 2
0
 def test_phaseogram_input_real_data(self):
     evfile = self.real_event_file
     main_phaseogram([evfile, '-f', '9.9', '--test', '--pepoch', '57000'])
Exemplo n.º 3
0
 def test_phaseogram_input_f(self):
     evfile = self.dum
     main_phaseogram([evfile, '-f', '9.9', '--test', '--pepoch', '57000'])
Exemplo n.º 4
0
 def test_phaseogram_input_periodogram(self):
     evfile = self.dum
     main_phaseogram([
         evfile, '--periodogram', 'events_Z2n' + HEN_FILE_EXTENSION,
         '--test'
     ])
Exemplo n.º 5
0
 def test_phaseogram_raises_binary(self):
     evfile = self.dum
     with pytest.raises(ValueError):
         main_phaseogram([evfile, '--binary', '--test'])
Exemplo n.º 6
0
 def test_phaseogram_input_f_binary(self):
     evfile = self.dum
     main_phaseogram([
         evfile, '--binary', '-f', '9.9', '--test', '--binary-parameters',
         '10000', '0', '0'
     ])
Exemplo n.º 7
0
 def test_phaseogram_input_periodogram_binary(self):
     evfile = self.dum
     main_phaseogram([
         evfile, '--binary', '--periodogram',
         'events_Z2n' + HEN_FILE_EXTENSION, '--test', '--pepoch', '57000'
     ])
Exemplo n.º 8
0
 def test_phaseogram_input_f_binary(self):
     evfile = self.dum
     main_phaseogram([evfile, '--binary', '-f', '9.9', '--test'])