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

Let ArrayBase.update_for_persistent_hash deal with all shapes that can occur

parent 1d1317ed
No related branches found
No related tags found
No related merge requests found
......@@ -868,7 +868,14 @@ class ArrayBase(Record):
key_builder.rec(key_hash, self.name)
key_builder.rec(key_hash, self.dtype)
key_builder.update_for_pymbolic_expression(key_hash, self.shape)
if isinstance(self.shape, tuple):
for shape_i in self.shape:
if shape_i is None:
key_builder.rec(key_hash, shape_i)
else:
key_builder.update_for_pymbolic_expression(key_hash, shape_i)
else:
key_builder.rec(key_hash, self.shape)
key_builder.rec(key_hash, self.dim_tags)
key_builder.rec(key_hash, self.offset)
key_builder.rec(key_hash, self.dim_names)
......
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