Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to constantdict #373

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions grudge/array_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ def _dag_to_compiled_func(self, dict_of_named_arrays,
name_in_program_to_tags.update(part_prg_name_to_tags)
name_in_program_to_axes.update(part_prg_name_to_axes)

from immutabledict import immutabledict
from constantdict import constantdict
return _DistributedCompiledFunction(
actx=self.actx,
distributed_partition=distributed_partition,
part_id_to_prg=part_id_to_prg,
input_id_to_name_in_program=input_id_to_name_in_program,
output_id_to_name_in_program=output_id_to_name_in_program,
name_in_program_to_tags=immutabledict(name_in_program_to_tags),
name_in_program_to_axes=immutabledict(name_in_program_to_axes),
name_in_program_to_tags=constantdict(name_in_program_to_tags),
name_in_program_to_axes=constantdict(name_in_program_to_axes),
output_template=output_template)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
]
dependencies = [
"arraycontext>=2021.1",
"immutables>=0.19",
"constantdict",
"loopy>=2024.1",
"meshmode>=2021.2",
"modepy>=2021.1",
Expand Down
Loading