Closed dmargala closed 9 years ago
I'm having a similar issue when going between lite and full versions. For example:
$ bossquery --what PLATE,MJD,FIBER --max-rows 5 --print
works fine, but
bossquery --full -what PLATE,MJD,FIBER --max-rows 5 --print
returns:
No rows found for this query.
Is there a typo in your second command? -what
-> --what
Both seem to work fine for me.
$ bossquery --what PLATE,MJD,FIBER --max-rows 5 --print
PLATE MJD FIBER
----- ----- -----
3586 55181 16
3586 55181 18
3586 55181 20
3586 55181 32
3586 55181 36
$ bossquery --full --what PLATE,MJD,FIBER --max-rows 5 --print
PLATE MJD FIBER
----- ----- -----
3586 55181 16
3586 55181 18
3586 55181 20
3586 55181 32
3586 55181 36
I mistyped what I had originally written. This is what I had:
$ bossquery --full --what PLATE,MJD,FIBER --max-rows 5 --print
No rows found for this query.
Hmm, what is the file size of you full DB (filename spAll-v5_7_0.db)?
It's 22KB. I removed spAll-v5_7_0.db and spAll-v5_7_0.fits from my local directory since I'm assuming it was only partially downloaded. I re-ran the command with the --full option and it seems to be downloading now.
I just created #45 to address the problem that Bela had with a partially built database file, since this is separate from the subject of issue (which we still need to fix...)
I added a simple fix for this issue in PR #46
Fixed with PR #46
A TypeError occurs when a query returns no results and the
--verbose
option is specified.Without the verbose option, a message is displayed.
But for a query that returns a result, no message:
The TypeError should probably be fixed. The behavior without the
--verbose
option seems inconsistent to me.