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

Fix tick_calendar wday #304

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Fix tick_calendar wday #304

merged 2 commits into from
Nov 7, 2023

Conversation

DonBraulio
Copy link
Collaborator

This PR makes coherent the meaning of wday argument in tick_calendar(), with the numbering in calendar_day_of_week(). The former was using wday=0 for Sundays (C++ convention) instead of wday=0 for Mondays (python's datetime.weekday convention).

(Apparently, when I implemented tick_calendar I just assumed that the C++ and python conventions were the same 🤷‍♂️)

Copy link

github-actions bot commented Nov 2, 2023

Coverage report

Main: 91.10% | PR: 91.11% | Diff: 0.01 ✅

Copy link
Collaborator

@achoum achoum left a comment

Choose a reason for hiding this comment

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

Nice

@DonBraulio DonBraulio merged commit 6e80418 into main Nov 7, 2023
20 checks passed
@DonBraulio DonBraulio deleted the fix-tick-calendar-wday branch November 7, 2023 15:09
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.

3 participants