Пример #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
         ])
Пример #2
0
 def test_phaseogram_input_real_data(self):
     evfile = self.real_event_file
     main_phaseogram([evfile, '-f', '9.9', '--test', '--pepoch', '57000'])
Пример #3
0
 def test_phaseogram_input_f(self):
     evfile = self.dum
     main_phaseogram([evfile, '-f', '9.9', '--test', '--pepoch', '57000'])
Пример #4
0
 def test_phaseogram_input_periodogram(self):
     evfile = self.dum
     main_phaseogram([
         evfile, '--periodogram', 'events_Z2n' + HEN_FILE_EXTENSION,
         '--test'
     ])
Пример #5
0
 def test_phaseogram_raises_binary(self):
     evfile = self.dum
     with pytest.raises(ValueError):
         main_phaseogram([evfile, '--binary', '--test'])
Пример #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'
     ])
Пример #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'
     ])
Пример #8
0
 def test_phaseogram_input_f_binary(self):
     evfile = self.dum
     main_phaseogram([evfile, '--binary', '-f', '9.9', '--test'])