Skip to content
Snippets Groups Projects

[Fix] Absolut field access

Merged Markus Holzer requested to merge holzer/pystencils:AbsolutFieldAccess into master
Viewing commit d4ab51ab
Prev
Show latest version
1 file
+ 1
1
Preferences
Compare changes
+ 1
1
@@ -655,7 +655,7 @@ class Field:
if len(idx) == 1 and isinstance(idx[0], str):
dtype = BasicType(self.field.dtype.numpy_dtype[idx[0]])
return Field.Access(self.field, self._offsets, idx,
is_absolute_access=self.is_absolute_access, dtype=dtype)
is_absolute_access=self.is_absolute_access, dtype=dtype)
else:
return Field.Access(self.field, self._offsets, idx,
is_absolute_access=self.is_absolute_access, dtype=self.dtype)