-
Notifications
You must be signed in to change notification settings - Fork 263
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
Conversation
@ekatef FYI :) |
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]: |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
Closes #807
Changes proposed in this Pull Request
Checklist
envs/environment.yaml
.config.default.yaml
.doc/configtables/*.csv
.doc/release_notes.rst
is added.