Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • extensions/dune-codegen
  • christian.heinigk/dune-codegen
2 results
Show changes
Commits on Source (2)
......@@ -15,7 +15,7 @@ def _freeze(data):
""" A function that deterministically generates an
immutable item from the given data. Used for cache key generation.
"""
from collections import Hashable, Iterable, MutableMapping
from collections.abc import Hashable, Iterable, MutableMapping
# Strings are iterable and hashable, but they do not pose any problems.
if isinstance(data, str):
......@@ -260,7 +260,7 @@ def retrieve_cache_items(condition=True, make_generable=False):
counted_ones.extend(_filter_cache_items(gen, condition).values())
for item in sorted(counted_ones, key=lambda i: i.count):
from collections import Iterable
from collections.abc import Iterable
if isinstance(item.value, Iterable) and not isinstance(item.value, str):
for l in item.value:
yield as_generable(l)
......
......@@ -45,6 +45,7 @@ def preprocess_form(form):
uc.JacobianInverse,
),
do_estimate_degrees=not get_form_option("quadrature_order"),
do_append_everywhere_integrals=False,
)
formdata.preprocessed_form = apply_default_transformations(formdata.preprocessed_form)
......
from collections import Counter
from collections.abc import Counter
from dune.codegen.generation import (
delete_cache_items,
......