You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not necessary to use the fragile line continuation marker \ to split long graph lines. You can break at dependency arrows (=>) and operators (&, |), or split long chains into smaller ones. This graph:
R1 = "A & B => C"
is equivalent to this:
R1 = """
A & B =>
C
"""
and also to this:
R1 = """
A &
B => C
"""
The docs imply that you need to have the symbol at the end of the first line, for line continuation to work.
However, this works too:
P1 = """
# Processing chain for each dataset
get_data => proc1 => proc2 => products
# As one dataset is retrieved, start waiting on another.
get_data[-P1] => get_data
"""
P1 = """
# Processing chain for each dataset
get_data => proc1 => proc2 =>
products
# As one dataset is retrieved, start waiting on another.
get_data[-P1] => get_data
"""
P1 = """
# Processing chain for each dataset
get_data => proc1 => proc2
=> products
# As one dataset is retrieved, start waiting on another.
get_data[-P1] => get_data
"""
Expected Behaviour
For it to be documented.
The text was updated successfully, but these errors were encountered:
Description
Splitting Up Long Graph Lines
The docs imply that you need to have the symbol at the end of the first line, for line continuation to work.
However, this works too:
Reproducible Example
https://github.com/cylc/cylc-flow/blob/master/tests/functional/ext-trigger/00-satellite/flow.cylc ,
cylc graph
is the same for the following 3 permutations:Expected Behaviour
For it to be documented.
The text was updated successfully, but these errors were encountered: