[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 6465e57: Query: corrected check on full Gaia c

From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 6465e57: Query: corrected check on full Gaia catalog download
Date: Fri, 22 Jan 2021 12:51:38 -0500 (EST)

branch: master
commit 6465e5721f35c200686240da98bf6db231001827
Author: Mohammad Akhlaghi <>
Commit: Mohammad Akhlaghi <>

    Query: corrected check on full Gaia catalog download
    Recently a new check was added for Gaia so if no limits are set on the
    requested rows, an error is printed that tells the user why the download is
    going to fail. However, in this check, I had forgot to include
    '--overlapwith' as one of the ways that rows can be limited.
    With this commit, the '--overlapwith' option has also been added to one of
    the checks so when it is called by the user, this error won't abort the
    This issue was reported by Carlos Morales Socorro.
 bin/query/gaia.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/query/gaia.c b/bin/query/gaia.c
index 398f1ce..135e3ca 100644
--- a/bin/query/gaia.c
+++ b/bin/query/gaia.c
@@ -51,8 +51,9 @@ gaia_sanity_checks(struct queryparams *p)
      && p->datasetstr
      && p->query==NULL
      && p->center==NULL
-     && p->range==NULL)
-    error(EXIT_FAILURE, 0, "no constraints specified!"
+     && p->range==NULL
+     && p->overlapwith==NULL )
+    error(EXIT_FAILURE, 0, "no constraints specified! "
           "In other words, you are asking for all the rows within this "
           "dataset! Gaia datasets have billions of rows, therefore it "
           "has a limit on the number of rows downloaded anonymously. "

reply via email to

[Prev in Thread] Current Thread [Next in Thread]