## helper functions <% def rank(var): """the number of dimensions""" return len(var["shape"]) %> %for i, var in enumerate(variables): %if rank(var) > 0: case( ${i+1}) r = associated(s%${var["name"]}) %endif %endfor ## vim: filetype=mako