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

Pass args and add test #128

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

abarciauskas-bgse
Copy link
Collaborator

I noticed that reader_options were not being passed through to read_kerchunk_references_from_file in open_virtual_dataset when I was trying out the library with some files on S3 (e.g. open_virtual_dataset(s3_link, reader_options={'storage_options': aws_creds}) would get a Forbidden error, see https://gist.github.com/abarciauskas-bgse/629702733946b1ec0b008f659dbc3406 for reproducible example).

This PR just adds one line so those args are passed through. I added a test but not sure if that is overkill for such a small change.

@TomNicholas
Copy link
Member

This looks great, thanks @abarciauskas-bgse !

@TomNicholas TomNicholas merged commit 90af207 into main May 30, 2024
5 checks passed
@TomNicholas TomNicholas deleted the fix/open_vds_reader_options_args branch June 23, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants