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

Check WDPA url also a month forward #811

Merged
merged 7 commits into from
Dec 29, 2023
Merged

Check WDPA url also a month forward #811

merged 7 commits into from
Dec 29, 2023

Conversation

euronion
Copy link
Contributor

Closes #807

Changes proposed in this Pull Request

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in all of config.default.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv.
  • A release note doc/release_notes.rst is added.

@euronion
Copy link
Contributor Author

@ekatef FYI :)

@euronion euronion enabled auto-merge (squash) December 21, 2023 17:41
@euronion
Copy link
Contributor Author

I believe the windows failure is due to an issue with progressbar. There was a recently released bugfix which is not yet in our cached environment.... It should be fixed next year by rerunning the windows CI

next_monthyear = (datetime.now() + timedelta(30)).strftime("%b%Y")

# Test prioritised: current month -> previous -> next
for bYYYY in [current_monthyear, prev_monthyear, next_monthyear]:
Copy link
Member

Choose a reason for hiding this comment

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

on the same note, if config["enable"]["retrieve"] is false, then bYYYY doesnt exist in add_electricity.smk maybe we can add the same code there ?

Copy link
Member

Choose a reason for hiding this comment

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

Good point!

Generally, the downloaded file should drop the month in the filename. This is because otherwise, a new month would trigger the whole workflow to re-execute and invalidate all existing (intermediate) results.

I will prepare a separate pull request.

@fneum fneum disabled auto-merge December 29, 2023 09:46
@fneum fneum merged commit 40b7cc1 into master Dec 29, 2023
2 of 3 checks passed
@fneum fneum deleted the fix/retrieve-wdpa branch December 29, 2023 09:46
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.

Cannot start snakemake: https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_Dec2023_Public.zip missing
4 participants