[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 6465e57: Query: corrected check on full Gaia c
[gnuastro-commits] master 6465e57: Query: corrected check on full Gaia catalog download
Fri, 22 Jan 2021 12:51:38 -0500 (EST)
Author: Mohammad Akhlaghi <email@example.com>
Commit: Mohammad Akhlaghi <firstname.lastname@example.org>
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
@@ -51,8 +51,9 @@ gaia_sanity_checks(struct queryparams *p)
- && 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. "
|[Prev in Thread]
||[Next in Thread]|
- [gnuastro-commits] master 6465e57: Query: corrected check on full Gaia catalog download,
Mohammad Akhlaghi <=