-
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
ghost nodes for cylc graph. #2346
ghost nodes for cylc graph. #2346
Conversation
lib/cylc/cylc_xdot.py
Outdated
# Style regular (task) nodes. | ||
node.attr['shape'] = 'oval' | ||
if not any(seq.is_on_sequence(get_point(point)) for seq in | ||
self.suiterc.taskdefs[name].sequences): |
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.
In essence of our recent validate optimisation, we know that sequence calculations are expensive. I wonder if it is worth caching the results here?
4a109b4
to
2c21e4d
Compare
lib/cylc/cylc_xdot.py
Outdated
return False | ||
else: | ||
temp = sequence.is_on_sequence(get_point(point)) | ||
if cache: |
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.
This won't work if cache
is empty?
(Branch in conflict.) |
03002df
to
411a392
Compare
( |
98e69b0
to
bf367f8
Compare
(conflicts) |
bf367f8
to
3f18786
Compare
(resolutions) |
(heh heh 😁 ) |
node "fennel.1" "fennel\n1" unfilled box black | ||
node "grape.1" "grape\n1" unfilled box black | ||
node "artichoke.1" "artichoke\n1" unfilled ellipse black | ||
node "arugula.1" "arugula\n1" unfilled ellipse black |
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.
(box/ellipse ... and at first I was slightly concerned about the +/- 900 lines change size)
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.
Yes, its been fun changing all those lines!
I thought you had broken right-click group/ungroup of families, but it turns out I'd checked out your other branch with identical branch name minus the final 'w' in '-view'! 1 test failing, but otherwise looks good to me (tested with nested families too). |
Can be merged if tests pass now. Over 'n out. |
Actually, you could mention this at the end of the CUG section "How The Graph Determines Task Instantiation". |
I'll take the liberty to merge this. |
…-fix docs: update documentation after #2346
* Closes cylc#4638 * Fixes a regression where `cylc graph` was no longer rendering un-satisfiable dependencies differently (see cylc#2346 for original implementation). * Restores the missing functionality to `cylc graph` and also adds warnings so un-satisfiable dependencies can be detected more easily. * Refactors `cylc graph` a little, main change is that graphviz output is no longer achieved by re-processing the reference output using regexes. It's now generated from the graph directly.
* Closes cylc#4638 * Fixes a regression where `cylc graph` was no longer rendering un-satisfiable dependencies differently (see cylc#2346 for original implementation). * Restores the missing functionality to `cylc graph` and also adds warnings so un-satisfiable dependencies can be detected more easily. * Refactors `cylc graph` a little, main change is that graphviz output is no longer achieved by re-processing the reference output using regexes. It's now generated from the graph directly.
* Closes cylc#4638 * Fixes a regression where `cylc graph` was no longer rendering un-satisfiable dependencies differently (see cylc#2346 for original implementation). * Restores the missing functionality to `cylc graph` and also adds warnings so un-satisfiable dependencies can be detected more easily. * Refactors `cylc graph` a little, main change is that graphviz output is no longer achieved by re-processing the reference output using regexes. It's now generated from the graph directly.
* Closes cylc#4638 * Fixes a regression where `cylc graph` was no longer rendering un-satisfiable dependencies differently (see cylc#2346 for original implementation). * Restores the missing functionality to `cylc graph` and also adds warnings so un-satisfiable dependencies can be detected more easily. * Refactors `cylc graph` a little, main change is that graphviz output is no longer achieved by re-processing the reference output using regexes. It's now generated from the graph directly.
* Closes cylc#4638 * Fixes a regression where `cylc graph` was no longer rendering un-satisfiable dependencies differently (see cylc#2346 for original implementation). * Restores the missing functionality to `cylc graph` and also adds warnings so un-satisfiable dependencies can be detected more easily. * Refactors `cylc graph` a little, main change is that graphviz output is no longer achieved by re-processing the reference output using regexes. It's now generated from the graph directly.
Closes #2287
Graph view now displays tasks using ovals rather than boxes to match gcylc.
Before

After

ng)