-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add weeks #1146
base: master
Are you sure you want to change the base?
Add weeks #1146
Conversation
39ed5ad
to
952c22d
Compare
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.
I'm trying to call a variable with definition_period
set to periods.DAY
from a variable with a definition_period
set to periods.WEEK
.
I'm using the "add" argument in the format: persons("variable_name", period, "add")
It does not work and I get the error: "Unable to compute variable..... for period 2019-W05, as 2019-W05 and day are incompatible periods".
It does work if the called variable period is changed from periods.DAY
to periods.WEEKDAY
@benjello I seem to have constrained week/day set inputs for coherence reasons (we can add and divide weeks and Monday to Sunday but not calendar days). What do you think? Also @MaxGhenis and @nikhilwoodruff. Would it make sense to make set inputs compatible between ISO weeks and calendar days for your use cases? |
More generally I ask myself the question of weekdays' (for example |
952c22d
to
15eef83
Compare
e6727a4
to
4a8cf06
Compare
4a8cf06
to
a24de40
Compare
22a8701
to
317c483
Compare
317c483
to
42f986f
Compare
42f986f
to
34d0b4f
Compare
34d0b4f
to
7a62848
Compare
6ee5b44
to
169bef1
Compare
f90c6e5
to
fbce81f
Compare
1c299cb
to
a694d28
Compare
0d36d1a
to
5aaca86
Compare
Fixes #966
Supersedes #979