28
28
class TestGemini :
29
29
def test_observations_query_region (self ):
30
30
""" test query against a region of the sky against actual archive """
31
- result = gemini .Observations .query_region (coords , radius = 0.3 * units .deg )
31
+ result = gemini .GeminiObservations .query_region (coords , radius = 0.3 * units .deg )
32
32
assert isinstance (result , Table )
33
33
assert len (result ) > 0
34
34
35
35
def test_observations_query_criteria (self ):
36
36
""" test query against an instrument/program via criteria against actual archive """
37
- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
37
+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
38
38
observation_type = 'BIAS' )
39
39
assert isinstance (result , Table )
40
40
assert len (result ) > 0
41
41
42
42
def test_observations_query_criteria_ascending_sort (self ):
43
43
""" test query against an instrument/program via criteria against actual archive """
44
- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
44
+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
45
45
observation_type = 'BIAS' , orderby = 'filename_asc' )
46
46
assert isinstance (result , Table )
47
47
assert len (result ) > 0
@@ -52,7 +52,7 @@ def test_observations_query_criteria_ascending_sort(self):
52
52
53
53
def test_observations_query_criteria_descending_sort (self ):
54
54
""" test query against an instrument/program via criteria against actual archive """
55
- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
55
+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
56
56
observation_type = 'BIAS' , orderby = 'filename_desc' )
57
57
assert isinstance (result , Table )
58
58
assert len (result ) > 0
@@ -62,15 +62,15 @@ def test_observations_query_criteria_descending_sort(self):
62
62
63
63
def test_observations_query_raw (self ):
64
64
""" test querying raw against actual archive """
65
- result = gemini .Observations .query_raw ('GMOS-N' , 'BIAS' , progid = 'GN-CAL20191122' )
65
+ result = gemini .GeminiObservations .query_raw ('GMOS-N' , 'BIAS' , progid = 'GN-CAL20191122' )
66
66
assert isinstance (result , Table )
67
67
assert len (result ) > 0
68
68
69
69
def test_get_file (self ):
70
70
""" test querying raw against actual archive """
71
71
tempdir = tempfile .mkdtemp ('_gemini_test' )
72
72
filename = '20190105_GN-CAL20190105_obslog.txt'
73
- gemini .Observations .get_file (filename , download_dir = tempdir )
73
+ gemini .GeminiObservations .get_file (filename , download_dir = tempdir )
74
74
filepath = os .path .join (tempdir , filename )
75
75
assert os .path .isfile (filepath )
76
76
assert os .stat (filepath ).st_size == 7624
0 commit comments