|
26 | 26 |
|
27 | 27 |
|
28 | 28 | # Test with pressure only (no H)
|
29 |
| -# def test_01_data_noH(): |
30 |
| -# from obstools.scripts import atacr_download_data as atacr |
31 |
| -# args0 = atacr.get_daylong_arguments([ |
32 |
| -# dbfile, '--keys', '7D.M08A', '-O', |
33 |
| -# '--start', '2012-03-08', '--end', '2012-03-10', |
34 |
| -# '--sampling-rate', '1.0', '--channels', 'P']) |
35 |
| -# atacr.main(args=args0) |
| 29 | +def test_01_data_noH(): |
| 30 | + from obstools.scripts import atacr_download_data as atacr |
| 31 | + args0 = atacr.get_daylong_arguments([ |
| 32 | + dbfile, '--keys', '7D.M08A', '-O', |
| 33 | + '--start', '2012-03-08', '--end', '2012-03-10', |
| 34 | + '--sampling-rate', '1.0', '--channels', 'P']) |
| 35 | + atacr.main(args=args0) |
36 | 36 | def test_02_daily_noH():
|
37 | 37 | from obstools.scripts import atacr_daily_spectra as atacr
|
38 | 38 | args0 = atacr.get_dailyspec_arguments([
|
39 | 39 | dbfile, '--keys', '7D.M08A', '-O', '--figQC',
|
40 | 40 | '--figAverage', '--save-fig'])
|
41 | 41 | atacr.main(args=args0)
|
42 |
| -# def test_03_clean_noH(): |
43 |
| -# from obstools.scripts import atacr_clean_spectra as atacr |
44 |
| -# args0 = atacr.get_cleanspec_arguments([ |
45 |
| -# dbfile, '--keys', '7D.M08A', '-O', '--save-fig', |
46 |
| -# '--figCross', '--figCoh']) |
47 |
| -# atacr.main(args=args0) |
48 |
| -# def test_04_trans_noH(): |
49 |
| -# from obstools.scripts import atacr_transfer_functions as atacr |
50 |
| -# args0 = atacr.get_transfer_arguments([ |
51 |
| -# dbfile, '--keys', '7D.M08A', '-O', '--save-fig', '--figTF']) |
52 |
| -# atacr.main(args=args0) |
53 |
| -# def test_05_event_noH(): |
54 |
| -# from obstools.scripts import atacr_download_event as atacr |
55 |
| -# args0 = atacr.get_event_arguments([ |
56 |
| -# dbfile, '--keys', '7D.M08A', '-O', |
57 |
| -# '--start', '2012-03-08', '--end', '2012-03-10', |
58 |
| -# '--min-mag', '6.3', '--max-mag', '6.7', |
59 |
| -# '--sampling-rate', '1.0', '--channels', 'P']) |
60 |
| -# atacr.main(args=args0) |
61 |
| -# def test_06_correct_noH(): |
62 |
| -# from obstools.scripts import atacr_correct_event as atacr |
63 |
| -# args0 = atacr.get_correct_arguments([ |
64 |
| -# dbfile, '--keys', '7D.M08A', '-O', '--figRaw', |
65 |
| -# '--figClean', '--save-fig', '--save']) |
66 |
| -# atacr.main(args=args0) |
67 |
| -# def test_07_comply_noH(): |
68 |
| -# from obstools.scripts import comply_calculate as comply |
69 |
| -# args0 = comply.get_comply_arguments([ |
70 |
| -# dbfile, '--keys', '7D.M08A', '-O', '--save-fig', '--fig']) |
71 |
| -# comply.main(args=args0) |
| 42 | +def test_03_clean_noH(): |
| 43 | + from obstools.scripts import atacr_clean_spectra as atacr |
| 44 | + args0 = atacr.get_cleanspec_arguments([ |
| 45 | + dbfile, '--keys', '7D.M08A', '-O', '--save-fig', |
| 46 | + '--figCross', '--figCoh']) |
| 47 | + atacr.main(args=args0) |
| 48 | +def test_04_trans_noH(): |
| 49 | + from obstools.scripts import atacr_transfer_functions as atacr |
| 50 | + args0 = atacr.get_transfer_arguments([ |
| 51 | + dbfile, '--keys', '7D.M08A', '-O', '--save-fig', '--figTF']) |
| 52 | + atacr.main(args=args0) |
| 53 | +def test_05_event_noH(): |
| 54 | + from obstools.scripts import atacr_download_event as atacr |
| 55 | + args0 = atacr.get_event_arguments([ |
| 56 | + dbfile, '--keys', '7D.M08A', '-O', |
| 57 | + '--start', '2012-03-08', '--end', '2012-03-10', |
| 58 | + '--min-mag', '6.3', '--max-mag', '6.7', |
| 59 | + '--sampling-rate', '1.0', '--channels', 'P']) |
| 60 | + atacr.main(args=args0) |
| 61 | +def test_06_correct_noH(): |
| 62 | + from obstools.scripts import atacr_correct_event as atacr |
| 63 | + args0 = atacr.get_correct_arguments([ |
| 64 | + dbfile, '--keys', '7D.M08A', '-O', '--figRaw', |
| 65 | + '--figClean', '--save-fig', '--save']) |
| 66 | + atacr.main(args=args0) |
| 67 | +def test_07_comply_noH(): |
| 68 | + from obstools.scripts import comply_calculate as comply |
| 69 | + args0 = comply.get_comply_arguments([ |
| 70 | + dbfile, '--keys', '7D.M08A', '-O', '--save-fig', '--fig']) |
| 71 | + comply.main(args=args0) |
72 | 72 |
|
73 |
| -# def test_08_rmtree(): |
74 |
| -# shutil.rmtree(datadir) |
75 |
| -# shutil.rmtree(avgdir) |
76 |
| -# shutil.rmtree(evdir) |
77 |
| -# shutil.rmtree(specdir) |
78 |
| -# shutil.rmtree(tfdir) |
79 |
| -# shutil.rmtree(cmpdir) |
| 73 | +def test_08_rmtree(): |
| 74 | + shutil.rmtree(datadir) |
| 75 | + shutil.rmtree(avgdir) |
| 76 | + shutil.rmtree(evdir) |
| 77 | + shutil.rmtree(specdir) |
| 78 | + shutil.rmtree(tfdir) |
| 79 | + shutil.rmtree(cmpdir) |
0 commit comments