Skip to content

Commit

Permalink
use make_dict_of_named_arrays to suppress deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm authored and inducer committed Sep 7, 2023
1 parent 667b93c commit 12122f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grudge/array_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ def _dag_to_compiled_func(self, dict_of_named_arrays,
name_in_program_to_tags = pmap()
name_in_program_to_axes = pmap()

from pytato import DictOfNamedArrays
from pytato import make_dict_of_named_arrays
for part in distributed_partition.parts.values():
d = DictOfNamedArrays(
d = make_dict_of_named_arrays(
{var_name: distributed_partition.name_to_output[var_name]
for var_name in part.output_names
})
Expand Down

0 comments on commit 12122f3

Please sign in to comment.