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

Adds option for adding a resolved url or filepath for stream downloading #56

Merged
merged 6 commits into from
Jan 31, 2024

Conversation

havok2063
Copy link
Collaborator

This PR closes #55 and adds the option using sdss_access stream downloading if you already have fully resolved urls or filepaths instead of a set of path keyword arguments. It adds a new method .add_file that accepts either a filepath, url, or path location and reconstructs the correct input to stream.

access = Access(release='DR17')
access.remote()
f = '/Users/Brian/Work/sdss/sas/dr17/manga/spectro/redux/v3_1_1/8485/stack/manga-8485-1901-LOGCUBE.fits.gz'
access.add_file(f, input_type='filepath')
access.set_stream()
access.commit()

or a resolved url

access = Access(release='DR17')
access.remote()
u = 'rsync://dtn.sdss.org/dr17/manga/spectro/redux/v3_1_1/8485/stack/manga-8485-1901-LOGCUBE.fits.gz'
access.add_file(u, input_type='url')
access.set_stream()
access.commit()

@havok2063 havok2063 merged commit 7359699 into main Jan 31, 2024
4 checks passed
@havok2063 havok2063 deleted the addfiles branch March 8, 2024 15:43
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.

add ability to download files using full paths
1 participant