Skip to content

Commit

Permalink
Ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Oct 2, 2024
1 parent ac30a3e commit a86d573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ufl/algorithms/renumbering.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
from collections import defaultdict
from itertools import count as _count

from ufl.algorithms.map_integrands import map_integrand_dags
from ufl.core.multiindex import Index
from ufl.corealg.multifunction import MultiFunction
from ufl.algorithms.map_integrands import map_integrand_dags


class IndexRelabeller(MultiFunction):
"""Renumber indices to have a consistent index numbering starting from 0."""
Expand Down Expand Up @@ -52,6 +53,5 @@ def renumber_indices(form):
Returns:
A new form, integral or expression with renumbered indices.
"""

reindexer = IndexRelabeller()
return map_integrand_dags(reindexer, form)
return map_integrand_dags(reindexer, form)

0 comments on commit a86d573

Please sign in to comment.