Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Issue/153 use fsspec #214

Merged
merged 11 commits into from
Oct 11, 2021
Merged

Issue/153 use fsspec #214

merged 11 commits into from
Oct 11, 2021

Conversation

peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Oct 8, 2021

Pull Request

Description

Remove aws and gcp specific functions
Very little new code has been writen, just remove the aws and gcs files, and changes to use fsspec

Fixes #153

How Has This Been Tested?

unittests

  • No
  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@@ -41,7 +39,9 @@ def one_file(filename):

if file_index > 18000:
print(filename)
gcp_to_aws(gcp_filename=filename, aws_filename=aws_filename, aws_bucket=AWS_BUCKET, gcs=gcs)

download_to_local(remote_filename=filename, local_filename="temp.nc")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should use tempfile here, in can this is run across multi-processes

Copy link
Member

@JackKelly JackKelly left a comment

Choose a reason for hiding this comment

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

LGTM! Love this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use fsspec and/or pathy to provide a unified interface to GCP, AWS, and local filesystems
2 participants