-
Notifications
You must be signed in to change notification settings - Fork 143
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
XMOS: updated holidays from 2020 #352
Conversation
Thanks for the PR @iMikeBug, just looks like it needs linting to pass the tests. Cheers. |
I couldn't find info about whether there is function for creating working Saturday. During some years there are several Saturdays when Moscow Exchange operates the full day. |
Hi @iMikeBug, tests are failing, looks like the csv file doesn't fully reflect the changes made? Separately, appears there's already dedicated lists for the 'labour_day_extensions' (L175) and 'victory_day_extensions' (L187). Could you place the corresponding holidays there rather than in the 'misc_adhoc' list. Thanks.
I suspect this wouldn't be trivial to implement. One messy option that occurs to me would be to change the |
for certain holidays.
@maread99, thanks for your idea. Will try to implement it somehow. Maybe in another PR. |
Saw the failed test. I've added 2021-05-10 as a working day cause it didn't follow the rule. However, csv file didn't add this day as a working day. |
I guess it's not as simple as the csv file needing to be updated again to reflect all the changes? |
Added manually several dates as working days
fixed minor mistakes
@maread99 thanks for your help. Finally found my mistake. |
Hi @iMikeBug. Sorry for not replying sooner. Is it the case that you've manually amended the .csv file such that if in the future the script is run to automatically update the .csv the errors are going to raise again? Thanks. |
Hi, @maread99. You're right. Unfortunately, I didn't understand the reason of this error. Calendar works correctly. But during .csv file generation working days are not added for several cases |
Oh, I've checked again. Everything is ok😅 .csv file is automatically generated without mistakes. |
Thanks @iMikeBug, now merged into the master. |
Also, adds exceptions for 2021 and observance functions for certain holidays.
Next changes to XMOS holidays were made:
Workflow to modify an existing Exchange Calendar
tests/resources/{Exchange MIC}.csv
), either manually or by executingpython etc/make_exchange_calendar_test_csv.py {Exchange MIC}
.tests/test_{Exchange MIC}_calendar.py
need updating to reflect your changes.exchange_calendars/exchange_calendar_{Exchange MIC}.py
.