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

EHSTPCR-1144: Implemented the function get_datalabs_path along with the #2998

Conversation

esdc-esac-esa-int
Copy link
Contributor

@esdc-esac-esa-int esdc-esac-esa-int commented Apr 25, 2024

Implemented a function get_datalabs_path to return the complete path of a file in datalabs by combining the datalabs volume path with the path of the file in the table ehst.artifact

@pep8speaks
Copy link

pep8speaks commented Apr 25, 2024

Hello @esdc-esac-esa-int! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-04-29 09:20:54 UTC

@jespinosaar jespinosaar added this to the v0.4.8 milestone Apr 25, 2024
@jespinosaar jespinosaar self-requested a review April 25, 2024 15:45
@esdc-esac-esa-int
Copy link
Contributor Author

Build problem with docs/readthedocs.org:astroquery, but this problem seems unrelated to this ticket

CHANGES.rst Outdated
@@ -193,6 +193,10 @@ esa.hubble
- New methods to retrieve metadata (``get_observations_from_program``) and
files (``download_files_from_program``) associated to a proposal. [#2910]

- New method ``get_datalabs_path``to return the complete path of a file in
datalambs by combining the datalabs volume path with the path of the file
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix the typo here (datalambs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typo fixed

talonso added 3 commits April 26, 2024 10:08
conform to the defaults in datalabs. Default value for default_volume is
now None, and in that case the volume and the first folders of the path
are filled automatically
@talonsoalbi
Copy link

Fixed the code style issues

@talonsoalbi
Copy link

talonsoalbi commented Apr 29, 2024

Added /filename to the output of the function to get the complete path to the file

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@bsipocz bsipocz merged commit 33ad514 into astropy:main May 3, 2024
8 checks passed
@bsipocz
Copy link
Member

bsipocz commented May 3, 2024

@talonsoalbi - if you add the email address you made the commits with to your github profile, these commits will properly show up as your contributions.

@jespinosaar
Copy link
Contributor

Many thanks @bsipocz !!

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.

5 participants