Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jessica (@jessicapilling) noticed the online table for XMM evidently … #279

Merged
merged 1 commit into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions daxa/mission/xmm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This code is a part of the Democratising Archival X-ray Astronomy (DAXA) module.
# Last modified by David J Turner ([email protected]) 24/04/2024, 13:58. Copyright (c) The Contributors
# Last modified by David J Turner ([email protected]) 01/05/2024, 10:25. Copyright (c) The Contributors
import os.path
import tarfile
from datetime import datetime
Expand Down Expand Up @@ -185,7 +185,7 @@ def _fetch_obs_info(self):
# I'll explain in a second
count_tab = AQXMMNewton.query_xsa_tap('select count(observation_id) from xsa.v_all_observations')
# Then I round up to the nearest 1000, probably unnecessary but oh well
num_obs = np.ceil(count_tab['count'].tolist()[0] / 1000).astype(int) * 1000
num_obs = np.ceil(count_tab['COUNT'].tolist()[0] / 1000).astype(int) * 1000
# Now I have to be a bit cheesy - If I used select * (which is what I would normally do in an SQL-derived
# language to grab every row) it actually only returns the top 2000. I think that * is replaced with TOP 2000
# before the query is sent to the server. However if I specify a TOP N, where N is greater than 2000, then it
Expand Down