-
-
Notifications
You must be signed in to change notification settings - Fork 425
ESA Euclid EUCLIDSWRQ-215 get_datalinks_metadata #3438
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
base: main
Are you sure you want to change the base?
ESA Euclid EUCLIDSWRQ-215 get_datalinks_metadata #3438
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3438 +/- ##
==========================================
+ Coverage 70.72% 70.75% +0.02%
==========================================
Files 232 232
Lines 20041 20060 +19
==========================================
+ Hits 14174 14193 +19
Misses 5867 5867 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great, thanks @jsaizsantos ! Please let us know if you have further comments, @bsipocz . We are preparing for an internal release at the end of this month, so it would be great if we could have this reviewed and merged by next week. |
bsipocz
left a comment
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.
Thanks @jsaizsantos for the PR and welcome to astroquery!
I have some comment for the content here, namely to consider not having the separate method just the new kwarg to get_datalinks. And maybe calling it something else then option, maybe extra_options (I'm not really sold on this idea) or something else that best describes it.
| options=options, | ||
| verbose=verbose) | ||
|
|
||
| def get_datalinks_metadata(self, ids, *, linking_parameter='SOURCE_ID', verbose=False): |
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.
Why have this as a separate method rather than just documenting the one needs to have use options='METADATA'? The narrative documentation example below throw me off the track as starting with that one, and based on the method name I expected only metadata rather than it having the same result as using get_datalinks and some extra metadata.
astroquery/esa/euclid/core.py
Outdated
| options : str, optional, default None | ||
| To let customize the server behaviour |
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.
options feels very generic; could we be more specific naming this?
Also, I would find it useful to mention what valid values could be for this, from the example below 'METADATA' is one, but how could the user know what else works?
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.
In addition, adding a new kwarg is an API change, thus will need to be mentioned in the changelog
|
Dear @bsipocz: |
|
Great, thanks @jsaizsantos ! @bsipocz , just let us know if more changes are needed. |
|
I still have one remaining question, namely if we really need the new, thin wrapper method |
|
Thanks for replying, @bsipocz. The request from the mission was to keep the method |
Yeap, the default behaviour stayed the same, but I really urge not to over complicate the user facing API with such thin wrappers. Is this really a blocker for the mission team @jespinosaar to call |
|
@bsipocz, the mission agrees to remove the new method |
|
As @jsaizsantos commented, we discussed with the mission if they really wanted a explicit method or this can be improved in the header docs for the method and/or the main documentation. And we will proceed with the second option. Thanks for your feedback @bsipocz ! |
Dear Astroquery community:
This is my first PR to this repository. I am a developer working for the Euclid archive at ESAC.
The purpose of this PR is to add a new method
get_datalinks_metadatato theEuclidclass, to return additional columns on top of the ones returned by the plainget_datalinksmethod, which is left untouched as it complies with the IVOA standard.The actual new columns to return are left to the datalinks service of the Euclid archive; currently it is
datalabs_path, to be used for Datalabs, but two more will come in a new release of the archive (with no further required change on the Astroquery interface):file_nameandhdu_index.cc @esdc-esac-esa-int