We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404d4a1 commit 64ef2f5Copy full SHA for 64ef2f5
arraycontext/impl/pytato/utils.py
@@ -158,13 +158,13 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array:
158
# Ideally, this code should just do
159
# return self.actx.from_numpy(expr.data).tagged(expr.tags),
160
# but there seems to be no way to transfer the non_equality_tags in that case.
161
- new_dw = self.actx.from_numpy(expr.data)
162
- assert isinstance(new_dw, DataWrapper)
+ actx_ary = self.actx.from_numpy(expr.data)
+ assert isinstance(actx_ary, DataWrapper)
163
164
# https://github.com/pylint-dev/pylint/issues/3893
165
# pylint: disable=unexpected-keyword-arg
166
return DataWrapper(
167
- data=new_dw.data,
+ data=actx_ary.data,
168
shape=expr.shape,
169
axes=expr.axes,
170
tags=expr.tags,
0 commit comments