Skip to content

Commit 17f2b31

Browse files
committed
static variables called explicitly within methods
1 parent c41acb4 commit 17f2b31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

astroquery/mast/observations.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from . import conf, utils
4141
from .core import MastQueryWithLogin
4242

43+
import astroquery
4344

4445
__all__ = ['Observations', 'ObservationsClass',
4546
'MastClass', 'Mast']
@@ -91,7 +92,7 @@ def list_missions(self):
9192
"""
9293

9394
# calling `service` variable
94-
service = ObservationsClass.caom_all
95+
service = Observations.caom_all
9596

9697
# getting all the histogram information
9798
params = {}
@@ -107,6 +108,7 @@ def list_missions(self):
107108
missions.remove('hist')
108109
return missions
109110

111+
110112
def get_metadata(self, query_type):
111113
"""
112114
Returns metadata about the requested query type.
@@ -164,7 +166,7 @@ def _parse_caom_criteria(self, **criteria):
164166
# Build the mashup filter object and store it in the correct service_name entry
165167
if coordinates or objectname:
166168
mashup_filters = self._portal_api_connection.build_filter_set(ObservationsClass.caom_cone,
167-
ObservationsClass.caom_filtercaom_filtered_position,
169+
ObservationsClass.caom_filtered_position,
168170
**criteria)
169171
coordinates = utils.parse_input_location(coordinates, objectname)
170172
else:

0 commit comments

Comments
 (0)