Skip to content

Commit ff82c96

Browse files
committed
allow 'project' view in addition to 'raw' view
1 parent 3717944 commit ff82c96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

astroquery/alma/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def query_region_async(self, coordinate, radius, cache=True, public=True,
102102
return self.query_async(payload, cache=cache, public=public,
103103
science=science, **kwargs)
104104

105-
def query_async(self, payload, cache=True, public=True, science=True):
105+
def query_async(self, payload, cache=True, public=True, science=True,
106+
view_format='raw'):
106107
"""
107108
Perform a generic query with user-specified payload
108109
@@ -122,7 +123,7 @@ def query_async(self, payload, cache=True, public=True, science=True):
122123

123124
url = urljoin(self._get_dataarchive_url(), 'aq/')
124125

125-
payload.update({'result_view':'raw', 'format':'VOTABLE',
126+
payload.update({'result_view':view_format, 'format':'VOTABLE',
126127
'download':'true'})
127128
if public:
128129
payload['public_data'] = 'public'

0 commit comments

Comments
 (0)