Skip to content

Commit

Permalink
Merge pull request #1398 from mfixstsci/astroquery-bug-fix-2023-11-13
Browse files Browse the repository at this point in the history
MAST Astroquery Param Update
  • Loading branch information
BradleySappington authored Nov 13, 2023
2 parents 03aece8 + c5b286e commit c917860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions jwql/tests/test_mast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
def test_astroquery_mast():
"""Test if the astroquery.mast service can complete a request"""
service = 'Mast.Caom.Filtered'
params = {'columns': 'COUNT_BIG(*)', 'filters': [], 'pagesize': 1,
'page': 1}
params = {'columns': 'COUNT_BIG(*)',
'filters': [{"paramName": "obs_collection",
"values": ["JWST"]},],
'pagesize': 1, 'page': 1}
response = Mast.service_request_async(service, params)
result = response[0].json()

Expand Down
2 changes: 1 addition & 1 deletion jwql/website/apps/jwql/data_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ def get_proposals_by_category(instrument):

service = "Mast.Jwst.Filtered.{}".format(instrument)
params = {"columns": "program, category",
"filters": []}
"filters": [{'paramName':'instrume', 'values':[instrument]}]}
response = Mast.service_request_async(service, params)
results = response[0].json()['data']

Expand Down

0 comments on commit c917860

Please sign in to comment.