Skip to content

Commit

Permalink
modifying _Stencil_CP for compatibility with numpy>=2
Browse files Browse the repository at this point in the history
  • Loading branch information
dhamm97 authored and SepandKashani committed Nov 25, 2024
1 parent d172dc4 commit dbb872a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyxu/operator/linop/stencil/_stencil.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _gen_code(self) -> types.ModuleType:
with open(template_file, mode="r") as f:
template = string.Template(f.read())
code = template.substitute(
kernel_center=str(tuple(self._center)),
kernel_center=str(tuple(self._center.tolist())),
kernel_width=str(self._kernel.shape),
signature=signature,
stencil_spec=self.__stencil_spec(),
Expand Down

0 comments on commit dbb872a

Please sign in to comment.