What happened?
PyFlow does not generate exports for variables used only in shell arithmetic expressions. It is quite easily worked around, but still confusing. May be worth either documenting it, or fixing it somehow.
What are the steps to reproduce the bug?
loop_script = """
for (( i = 0; i < NUM_ITER ; i++ )) ; do
echo $i
done
"""
pf.Task("loop", script=loop_script, variables={"NUM_ITER": 5})
Version
3.2.1
Platform (OS and architecture)
ECMWF HPC
Relevant log output
No response
Accompanying data
No response
Organisation
No response