Skip to content

Commit 64ef2f5

Browse files
committed
Fix a name in TransferFromNumpyMapper
1 parent 404d4a1 commit 64ef2f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arraycontext/impl/pytato/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ def map_data_wrapper(self, expr: DataWrapper) -> Array:
158158
# Ideally, this code should just do
159159
# return self.actx.from_numpy(expr.data).tagged(expr.tags),
160160
# 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)
161+
actx_ary = self.actx.from_numpy(expr.data)
162+
assert isinstance(actx_ary, DataWrapper)
163163

164164
# https://github.com/pylint-dev/pylint/issues/3893
165165
# pylint: disable=unexpected-keyword-arg
166166
return DataWrapper(
167-
data=new_dw.data,
167+
data=actx_ary.data,
168168
shape=expr.shape,
169169
axes=expr.axes,
170170
tags=expr.tags,

0 commit comments

Comments
 (0)