-
Notifications
You must be signed in to change notification settings - Fork 20
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 truncated timepoint addition bug #234
base: master
Are you sure you want to change the base?
Conversation
Note this does not fix cylc/cylc-flow#2382, presumably that is still a bug in cylc-flow |
Actually which should the behaviour be?
|
681b125
to
2833ad2
Compare
This comment was marked as outdated.
This comment was marked as outdated.
I think we have to maintain the current behaviour to avoid breaking (Technically we could change the behaviour here and add a workaround in Cylc, but that's more effort) |
Decision on The behaviour is to be:
This is because a truncated datetime should assume 0 for any unspecified time units, and 1 for any unspecified date units lower than what has been specified. |
fb0a2f0
to
2f75c13
Compare
…in prior datetime Truncated timepoint addition now correctly assumes unspecified units smaller than the largest specified unit are at their minimal values `T00` is short for `T0000` and so `---01` should be short for `01T0000`, `--04` should be short for `--04-01T0000` etc.
02d8e73
to
6d6b7ee
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.
Seems reasonable, code looks good and looks like it fixes the bug. Is it worth filling the gaps in the coverage whilst you're at it. I think it is.
7e4b9b7
to
96e7f06
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.
Sorry I failed to approve sooner. Please get a second reviewer or merge as you think appropriate.
No worries, this has not been a top priority at the moment |
Closes #80
Closes #212
Built on #203