-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Description
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:
R1 = """
A & B
=> C
"""
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:
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.