-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Restore rectangle search #2663
Restore rectangle search #2663
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2663 +/- ##
==========================================
- Coverage 69.17% 65.83% -3.34%
==========================================
Files 304 233 -71
Lines 22529 17892 -4637
==========================================
- Hits 15585 11780 -3805
+ Misses 6944 6112 -832
... and 89 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
The |
A fix to that incorrect assumption would be welcome! |
@keflavich, good, but I think I will keep that as a separate issue for now. |
@keflavich, I need some help on this one. I can no longer determine why |
I see https://readthedocs.org/projects/astroquery/builds/19731041/ is the problem. I'm not sure, but my first guess is that you've changed something like
to
which has broken the I can dig a bit more later if that's not the soln |
That helped, but now it seems to be having problems with lines like:
Note that there is a server-side limit of 3 arcmin on `radius`.
which is the standard way to refer to arguments to a function. Instead it
is being interpreted with the py:obj role.
try double instead of single backticks?
--
Adam
|
@keflavich, et al., I still need to do some updates to the remote data tests, but I think it is time to move this out of draft status and start thinking about the unchecked boxes above:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should be the default for query_region() if neither radius nor width are specified? Currently it raises an exception.
This is the right behavior
What is the definition of "rectangle". Currently, I implemented an improved version of the original rectangle from the previous tag (now handles RA wrap-around!). It does not currently implement cos(dec) corrections.
The current implementation is fine, but ...
Is the documentation sufficiently clear?
Yes, but include a note that the rectangle coordinates represent (ra +/- width, dec +/- height) as opposed to (ra +/- width/cos(dec), dec +/- height)
Otherwise, looks good. I put in some minor code readability suggestions - if they do not achieve the desired behavior, though, feel free to reject.
@keflavich, I've implemented your suggestions and also run remote tests to verify those are working. The final step is updating the documentation. |
@keflavich, et al., I've added further details to the documentation and the change log. For some reason Codecov is saying the total coverage decreased, even though I increased the coverage of sdss/core.py to 100%. The largest decrease appears to be in cds/core.py, but I don't know why that is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the clarification text about the shape of the selection. I have two very minor suggestions but I think this is good to merge. I'm not really worried about the coverage decrease because it can't be related, but if anyone else has ideas, voice 'em
OK, I've committed the last two suggestions. |
Reminder: this is waiting for final review. |
@bsipocz I'm good with this, but I'm wary of hitting 'merge' without your eyes on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good, thanks!
This PR closes #2659. Rectangle searches are passed as a SQL query to
query_sql()
.query_region()
with eitherradius
orwidth
; not neither, not both.radius
norwidth
are specified?cos(dec)
or not.Other notes:
async_to_sync
, so I'll undo that for the purposes of this PR.