Skip to content
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

DOC: fix DatalinkResults example #475

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Aug 9, 2023

Fix the example where a DatalinkResults instance is created directly from a datalink url.

@bsipocz
Copy link
Member Author

bsipocz commented Aug 9, 2023

cc @alaity47

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #475 (98954ca) into main (6656130) will increase coverage by 0.01%.
Report is 10 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #475      +/-   ##
==========================================
+ Coverage   80.00%   80.01%   +0.01%     
==========================================
  Files          52       52              
  Lines        6035     6039       +4     
==========================================
+ Hits         4828     4832       +4     
  Misses       1207     1207              

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


>>> from pyvo.dal.adhoc import DatalinkResults
>>> # In this example you know the URL from somewhere
>>> url = 'https://ws.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/datalink?runid=m4b2g3aos0fwmtmg&ID=ivo%3A%2F%2Fcadc.nrc.ca%2FHSTHLA%3Fhst_12477_28_acs_wfc_f606w_01%2Fhst_12477_28_acs_wfc_f606w_01_drz'
Copy link
Contributor

Choose a reason for hiding this comment

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

The runid parameter is not necessary here. It's used internally at the CADC to capture a session information which is not the case here.

@bsipocz
Copy link
Member Author

bsipocz commented Sep 6, 2023

RTD has been fixed in main, it's not worth rerunning CI to make that one pass, so I merge it now.

Thanks for the review.

@bsipocz bsipocz merged commit 012e583 into astropy:main Sep 6, 2023
11 of 12 checks passed
@bsipocz bsipocz deleted the docs_dal_datalink branch October 20, 2023 18:29
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.

None yet

2 participants