Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 27, 2024
1 parent d58af3b commit b167769
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions python/ndelement/ciarlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,16 @@ def create_family(
"""Create a new element family."""
rust_type = _rtypes[dtype]
if family == Family.Lagrange:
return ElementFamily(family, degree, _lib.create_lagrange_family(degree, continuity.value, rust_type))
return ElementFamily(
family, degree, _lib.create_lagrange_family(degree, continuity.value, rust_type)
)
elif family == Family.RaviartThomas:
return ElementFamily(family, degree, _lib.create_raviart_thomas_family(degree, continuity.value, rust_type))
return ElementFamily(
family, degree, _lib.create_raviart_thomas_family(degree, continuity.value, rust_type)
)
elif family == Family.NedelecFirstKind:
return ElementFamily(family, degree, _lib.create_nedelec_family(degree, continuity.value, rust_type))
return ElementFamily(
family, degree, _lib.create_nedelec_family(degree, continuity.value, rust_type)
)
else:
raise ValueError(f"Unsupported family: {family}")

0 comments on commit b167769

Please sign in to comment.