-
Notifications
You must be signed in to change notification settings - Fork 94
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
Bad recurrence exclusion warning #5659
Comments
@hjoliver, is the issue that the error message is wrong (i.e. "Must have more than 1 repetition..."), or would we rather let Cylc silently ignore the null-recurrence? |
Maybe I've misunderstood how exclusions are supposed to work, but it seems to me that this:
should represent a single-point ( |
I think I thought that Yes, |
This warning is coming from parsing the exclusion itself, you'll get the same warning if you do: [scheduling]
[[graph]]
^ = foo Because "^" gets replaced with "3000" and "3000" is not a valid expression. The correct way of writing it is like this: [scheduling]
[[graph]]
R1/^ = foo And for the exclusion example: [scheduling]
[[graph]]
P1Y ! R1/^ = foo |
When we parse an exclusion, we first attempt to parse it as a sequence, then fall back to parsing it as a point. It's this first attempt at parsing which causes the zero-duration warning. I've raised a PR to suppress this logging for exclusion parsing. |
According to our documentation that is correct but not necessary, because single point exclusions are also supposed to be correct. ... [However, going by your last comment and new PR, you've come to the same conclusion yourself 👍 ] |
...and being the author of that functionality... |
See https://cylc.discourse.group/t/cannot-have-more-than-1-repetition-for-zero-duration-recurrence/705/13
Validation:
The warning refers to the exclusion point
^
.The text was updated successfully, but these errors were encountered: