Skip to content
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

CUG: doc param logical quirk #2547

Merged
merged 2 commits into from
Jan 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions doc/src/cylc-user-guide/cug.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4779,6 +4779,29 @@ \subsubsection{Parameter Offsets In The Graph}
graph = "proc_small => proc_big => proc_huge"
\end{lstlisting}

However, a quirk in the current system means that you should avoid mixing
conditional logic in these statements. For example, the following will do the
unexpected:

\begin{lstlisting}
graph = foo<m-1> & baz => foo<m> # for m = cat, dog
\end{lstlisting}
currently expands to:
\begin{lstlisting}
graph = foo_cat & baz => foo_dog
# when users may expect it to be:
# graph = foo_cat => foo_dog
# graph = baz => foo_cat & foo_dog
\end{lstlisting}

hjoliver marked this conversation as resolved.
Show resolved Hide resolved
For the time being, writing out the logic explicitly will give you the correct
graph.

\begin{lstlisting}
graph = """foo<m-1> => foo<m> # for m = cat, dog
baz => foo<m>"""
\end{lstlisting}

\subsubsection{Task Families And Parameterization}

Task family members can be generated by parameter expansion:
Expand Down