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

Feature/check for archive #10

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

paulf81
Copy link
Contributor

@paulf81 paulf81 commented Jun 25, 2024

Hi @aclerc, I'm just getting familiarized with wind-up and as one learning activity I wanted to try submitting a PR activity from my fork. Feel free to reject the change though, the main thing this code does is allow the examples to proceed in the event the user can't connect to zenodo (it is blocked by our firewall), if the file is already located in the CACHE folder.

Then a much smaller change, I added DS_Store to the list of files to ignore (some kind of mac temp file)

Copy link
Contributor

@aclerc aclerc left a comment

Choose a reason for hiding this comment

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

nice!

logger.info(f"Failed to download Zenodo record {record_id}. Error: {e}")

if (output_dir / "SMARTEOLE-WFC-open-dataset.zip").exists():
logger.info("Using cached dataset.")
Copy link
Contributor

Choose a reason for hiding this comment

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

this message could include {output_dir / "SMARTEOLE-WFC-open-dataset.zip"} to make it super obvious what has happened but no big deal

@aclerc aclerc merged commit ec5b242 into resgroup:main Jun 26, 2024
1 check passed
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