Skip to content
Snippets Groups Projects
Commit 325ba4dc authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Make to_batched recurse on indices (reported by Marmaduke Woodman)

parent af28cc3c
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class _BatchVariableChanger(RuleAwareIdentityMapper):
if not self.needs_batch_subscript(expr.aggregate.name):
return super(_BatchVariableChanger, self).map_subscript(expr, expn_state)
idx = expr.index
idx = self.rec(expr.index, expn_state)
if not isinstance(idx, tuple):
idx = (idx,)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment