Skip to content

Commit

Permalink
Ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed May 7, 2024
1 parent 64bb1da commit 7d362db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ufl/algorithms/formsplitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def extract_blocks(form, i=None, j=None):
forms = []
numbers = tuple(sorted(set(a.number() for a in arguments)))
arity = len(numbers)
parts = tuple(sorted(set(chain.from_iterable(
[range(a.ufl_element().num_sub_elements) for a in arguments]))))
parts = tuple(
sorted(
set(chain.from_iterable([range(a.ufl_element().num_sub_elements) for a in arguments]))
)
)

assert arity <= 2

Expand Down

0 comments on commit 7d362db

Please sign in to comment.