!fzusLjHRJdfvCIRwXh:matrix.org

cylc & isodatetime

10 Members
1 Servers

Load older messages


SenderMessageTime
4 Aug 2020
@oliver-sanders2:matrix.orgoliver sanders (this is probably why Cylc uses datetime to get timestamps as you noticed the other day) 13:59:52
@metronnie:matrix.orgRonnie DuttaAh14:00:27
@oliver-sanders2:matrix.orgoliver sandersWould be nice to solve #70 but I think it'll probably have to wait for another year (but in which calendar...)14:01:47
@revilo666:matrix.orgHilary Oliverimage.png
Download image.png
22:17:03
@revilo666:matrix.orgHilary Oliver
Cylc as LEGO: Lots of useful bits - painful when trodden on.
22:17:21
1 Sep 2020
@tpillinger:matrix.orgTim P changed their display name from tpillinger to Tim P.10:09:03
@tpillinger:matrix.orgTim P changed their display name from Tim P to Tim Pillinger.10:34:12
14 Sep 2020
@metronnie:matrix.orgRonnie Dutta There is a longstanding mistake in Isodatetime's handling of Recurrences, specifically format number one (Rn/<start_date>/<end_date>) https://github.com/metomi/isodatetime/issues/45 11:18:24
@metronnie:matrix.orgRonnie DuttaThe trouble is, people probably rely on this incorrect behaviour in Cylc11:19:25
@metronnie:matrix.orgRonnie DuttaWould fixing this behaviour be acceptable for Cylc8 and perhaps a major release of isodatetime (3.0)?11:21:47
@metronnie:matrix.orgRonnie Dutta cc oliver sanders 11:24:37
@oliver-sanders2:matrix.orgoliver sandersWhat's the motivation for fixing this now?12:08:09
@metronnie:matrix.orgRonnie DuttaIt would make sense as part of updating isodatetime in Cylc (bringing all the hashable data classes stuff). However, will be possible to implement the update without fixing the issue, 12:26:47
@metronnie:matrix.orgRonnie DuttaOne option discussed in our catch-up meeting today was the possiblity of a prefix to the usual syntax to mark the old format13:38:08
@metronnie:matrix.orgRonnie Dutta * One option discussed in our catch-up meeting today was the possiblity of a prefix to the usual syntax to mark the old format going forward13:38:20
@revilo666:matrix.orgHilary OliverMy opinion, best to fix it, and call on the standard for back up if it pisses off anyone relying on the wrong behaviour. The alternative is to confuse new users who expect the standard to be obeyed, which is worse.22:11:45
@revilo666:matrix.orgHilary OliverWe can try to advertise the change, of course.22:12:09
15 Sep 2020
@oliver-sanders2:matrix.orgoliver sandersCan you give us a summary of the kind of recurrences that get broken.08:03:43
@metronnie:matrix.orgRonnie Dutta

E.g.

R5/2020-01-01/2020-01-05

A user familiar with the incorrect behaviour would expect this to mean "5 times between the two dates", so at midmight on each day. Whereas according to ISO8601 it means "5 times with a period of the difference between the two dates", so every four days at midnight, ending on Jan 17th

08:16:54
@metronnie:matrix.orgRonnie Dutta *

E.g.

R5/2020-01-01/2020-01-05

A user familiar with the incorrect behaviour would expect this to mean "5 times beginning and ending on the two respective dates", so at midmight on the 1st, 2nd, ... 5th. Whereas according to ISO8601 it means "5 times with a period of the difference between the two dates", so every four days at midnight, ending on Jan 17th

08:17:58
@oliver-sanders2:matrix.orgoliver sanders That's a pretty big difference! The intended behaviour could be obtained in other ways R5/2020-01-01/P1D (or something like that) though there is a certain elegance to having Isodatetime do the maths for you. 08:35:05
@oliver-sanders2:matrix.orgoliver sandersI don't know how widespread this usage is, would have to dig through our suite repositories to get a picture.08:35:36
16 Sep 2020
@metronnie:matrix.orgRonnie Dutta I've tried several different regexes and I can't actually find an instance of this format (at least in /home/h02/ or /home/h03/) 09:13:17
@metronnie:matrix.orgRonnie Dutta(also the grep takes ages to run so I haven't always let it finish)09:13:54
@metronnie:matrix.orgRonnie DuttaThe docs don't mention this format as far as I can tell09:19:19
18 Sep 2020
@tpillinger:matrix.orgTim P

If adding it [flake8] there [isodatetime's setup.py] (good idea) add the tests_require to an all group so we can pip install -e .[all] as with other repos.

Shall I do that in the same PR?

10:31:33
@oliver-sanders2:matrix.orgoliver sandersIf you're happy to 10:49:55
@tpillinger:matrix.orgTim PSeems like a no-brainer10:50:34
8 Oct 2020
@tpillinger:matrix.orgTim P metronnie: I've just reviewed https://github.com/metomi/isodatetime/pull/183#pullrequestreview-503919868 - I've made loads of comments, but none are actually blockers - as per my statement on approval - I think that there is a more general need to look at isodatetime tests, but I think it's low priority. 08:39:16
@tpillinger:matrix.orgTim P * metronnie: I've just reviewed https://github.com/metomi/isodatetime/pull/183#pullrequestreview-503919868 - I've made loads of comments, but none are actually blockers - as per my statement on approval - I think that there is a more general need to look at isodatetime tests, but it's very low priority. 08:42:37

Show newer messages


Back to Room ListRoom Version: 1