Skip to content

Conversation

@bsipocz
Copy link
Member

@bsipocz bsipocz commented Apr 30, 2025

This PR switches to use votable responses so special characters in object names can be parsed without problems.

I have also switched to return NoResultsWarning instead of RuntimeErrors for

Fix #3301

cc @mkelley - it would be great if you could review this

@bsipocz bsipocz added this to the v0.4.11 milestone Apr 30, 2025
@bsipocz bsipocz force-pushed the MAINT_skybot_votable branch from ec0a366 to d3e3034 Compare April 30, 2025 07:04
@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.87%. Comparing base (b6661d1) to head (bca156d).
⚠️ Report is 121 commits behind head on main.

Files with missing lines Patch % Lines
astroquery/imcce/core.py 87.50% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3307      +/-   ##
==========================================
- Coverage   69.88%   69.87%   -0.01%     
==========================================
  Files         232      232              
  Lines       19742    19742              
==========================================
- Hits        13796    13795       -1     
- Misses       5946     5947       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@mkelley mkelley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good, except the added columns '_raj2000', '_decj2000', and 'externallink' affect the example table output in the documentation.

Currently:

>>> results.pprint(max_width=80)
 Number    Name             RA          ...      vy          vz       epoch
                           deg          ...    AU / d      AU / d       d
 ------ ---------- -------------------- ... ----------- ----------- ---------
     --  2012 BO42 0.019414999999999998 ... 0.009345668 0.005003011 2458630.0
 516566  2007 DH36 0.005546249999999999 ...  0.00855646 0.002875928 2458630.0
     --  2019 SS82    359.9931945833333 ... 0.009809784 0.004636687 2458630.0
 163149 2002 CV106   359.98692374999996 ... 0.009078104  0.00267749 2458630.0

This PR:

>>> results.pprint(max_width=80)
Number ...                           externallink                         
       ...                                                                
------ ... ---------------------------------------------------------------
    -- ...  https://ssp.imcce.fr/webservices/ssodnet/api/ssocard/2012_BO42
516566 ...  https://ssp.imcce.fr/webservices/ssodnet/api/ssocard/2007_DH36
659626 ...  https://ssp.imcce.fr/webservices/ssodnet/api/ssocard/2019_SS82
    -- ... https://ssp.imcce.fr/webservices/ssodnet/api/ssocard/2019_SH196
163149 ... https://ssp.imcce.fr/webservices/ssodnet/api/ssocard/2002_CV106

Potential fix?

>>> results["Number", "Name", "RA", "DEC", "Type"]
Number    Name             RA                   DEC             Type  
                          deg                   deg                   
------ ---------- -------------------- --------------------- ---------
    --  2012 BO42 0.019139999999999997              -0.01297 MB>Middle
516566  2007 DH36 0.005300833333333333   0.02301111111111111  MB>Inner
659626  2019 SS82         359.99291625 -0.028969444444444443  MB>Inner
    -- 2019 SH196   359.96022083333327 -0.030131944444444444  MB>Inner
163149 2002 CV106    359.9866720833333  -0.06932138888888889  MB>Inner

@bsipocz bsipocz merged commit 1d76138 into astropy:main May 2, 2025
10 checks passed
@bsipocz bsipocz deleted the MAINT_skybot_votable branch May 2, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when using astroquery.imcce.Skybot with large radius at specific coord

2 participants