Skip to content

Commit

Permalink
superset not tabulate_polynomial_set
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Jan 8, 2024
1 parent d8d60f9 commit f299094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/basix/polynomials.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def restriction(
Returns:
The restricted polyset type
"""
return _restriction(ptype.value, cell.value, restriction_cell.value)
return getattr(PolysetType, _restriction(ptype.value, cell.value, restriction_cell.value).name)


def superset(cell: CellType, type1: PolysetType, type2: PolysetType) -> PolysetType:
Expand Down Expand Up @@ -212,4 +212,4 @@ def tabulate_polynomial_set(
Returns:
Tabulated polynomial set
"""
return getattr(PolysetType, _tps(celltype.value, ptype.value, degree, nderiv, pts).name)
return _tps(celltype.value, ptype.value, degree, nderiv, pts)

0 comments on commit f299094

Please sign in to comment.