Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nbouziani committed Mar 26, 2024
1 parent ca5069f commit 652b0d8
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 115 deletions.
2 changes: 1 addition & 1 deletion test/test_duals.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_addition():
V = FunctionSpace(domain_2d, f_2d)
V_dual = V.dual()

fvector_2d = FiniteElement("Lagrange", triangle, 1, (2, ), identity_pullback, H1)
fvector_2d = FiniteElement("Lagrange", triangle, 1, (2,), identity_pullback, H1)
W = FunctionSpace(domain_2d, fvector_2d)

u = TrialFunction(V)
Expand Down
216 changes: 108 additions & 108 deletions ufl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,147 +44,147 @@
* Cells::
- AbstractCell
- Cell
- TensorProductCell
- vertex
- interval
- triangle
- tetrahedron
- quadrilateral
- hexahedron
- prism
- pyramid
- pentatope
- tesseract
-AbstractCell
-Cell
-TensorProductCell
-vertex
-interval
-triangle
-tetrahedron
-quadrilateral
-hexahedron
-prism
-pyramid
-pentatope
-tesseract
* Domains::
- AbstractDomain
- Mesh
- MeshView
-AbstractDomain
-Mesh
-MeshView
* Sobolev spaces::
- L2
- H1
- H2
- HInf
- HDiv
- HCurl
- HEin
- HDivDiv
-L2
-H1
-H2
-HInf
-HDiv
-HCurl
-HEin
-HDivDiv
* Pull backs::
- identity_pullback
- contravariant_piola
- covariant_piola
- l2_piola
- double_contravariant_piola
- double_covariant_piola
-identity_pullback
-contravariant_piola
-covariant_piola
-l2_piola
-double_contravariant_piola
-double_covariant_piola
* Function spaces::
- FunctionSpace
- MixedFunctionSpace
-FunctionSpace
-MixedFunctionSpace
* Arguments::
- Argument
- TestFunction
- TrialFunction
- Arguments
- TestFunctions
- TrialFunctions
-Argument
-TestFunction
-TrialFunction
-Arguments
-TestFunctions
-TrialFunctions
* Coefficients::
- Coefficient
- Constant
- VectorConstant
- TensorConstant
-Coefficient
-Constant
-VectorConstant
-TensorConstant
* Splitting form arguments in mixed spaces::
- split
-split
* Literal constants::
- Identity
- PermutationSymbol
-Identity
-PermutationSymbol
* Geometric quantities::
- SpatialCoordinate
- FacetNormal
- CellNormal
- CellVolume
- CellDiameter
- Circumradius
- MinCellEdgeLength
- MaxCellEdgeLength
- FacetArea
- MinFacetEdgeLength
- MaxFacetEdgeLength
- Jacobian
- JacobianDeterminant
- JacobianInverse
-SpatialCoordinate
-FacetNormal
-CellNormal
-CellVolume
-CellDiameter
-Circumradius
-MinCellEdgeLength
-MaxCellEdgeLength
-FacetArea
-MinFacetEdgeLength
-MaxFacetEdgeLength
-Jacobian
-JacobianDeterminant
-JacobianInverse
* Indices::
- Index
- indices
- i, j, k, l
- p, q, r, s
-Index
-indices
-i, j, k, l
-p, q, r, s
* Scalar to tensor expression conversion::
- as_tensor
- as_vector
- as_matrix
-as_tensor
-as_vector
-as_matrix
* Unit vectors and matrices::
- unit_vector
- unit_vectors
- unit_matrix
- unit_matrices
-unit_vector
-unit_vectors
-unit_matrix
-unit_matrices
* Tensor algebra operators::
- outer, inner, dot, cross, perp
- det, inv, cofac
- transpose, tr, diag, diag_vector
- dev, skew, sym
-outer, inner, dot, cross, perp
-det, inv, cofac
-transpose, tr, diag, diag_vector
-dev, skew, sym
* Elementwise tensor operators::
- elem_mult
- elem_div
- elem_pow
- elem_op
-elem_mult
-elem_div
-elem_pow
-elem_op
* Differential operators::
- variable
- diff,
- grad, nabla_grad
- div, nabla_div
- curl, rot
- Dx, Dn
-variable
(-diff,)
-grad, nabla_grad
-div, nabla_div
-curl, rot
-Dx, Dn
* Nonlinear functions::
- max_value, min_value
- abs, sign
- sqrt
- exp, ln, erf
- cos, sin, tan
- acos, asin, atan, atan2
- cosh, sinh, tanh
- bessel_J, bessel_Y, bessel_I, bessel_K
-max_value, min_value
-abs, sign
-sqrt
-exp, ln, erf
-cos, sin, tan
-acos, asin, atan, atan2
-cosh, sinh, tanh
-bessel_J, bessel_Y, bessel_I, bessel_K
* Complex operations::
Expand All @@ -193,10 +193,10 @@
* Discontinuous Galerkin operators::
- v('+'), v('-')
- jump
- avg
- cell_avg, facet_avg
-v("+"), v("-")
-jump
-avg
-cell_avg, facet_avg
* Conditional operators::
Expand All @@ -207,21 +207,21 @@
* Integral measures::
- dx, ds, dS, dP
- dc, dC, dO, dI, dX
- ds_b, ds_t, ds_tb, ds_v, dS_h, dS_v
-dx, ds, dS, dP
-dc, dC, dO, dI, dX
-ds_b, ds_t, ds_tb, ds_v, dS_h, dS_v
* Form transformations::
- rhs, lhs
- system
- functional
- replace
- adjoint
- action
- energy_norm,
- sensitivity_rhs
- derivative
-rhs, lhs
-system
-functional
-replace
-adjoint
-action
(-energy_norm,)
-sensitivity_rhs
-derivative
"""

# Copyright (C) 2008-2016 Martin Sandve Alnæs and Anders Logg
Expand Down
1 change: 0 additions & 1 deletion ufl/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# recommended to use. The __all__ list below is a start based
# on grepping of other FEniCS code for ufl.algorithm imports.


__all__ = [
"estimate_total_polynomial_degree",
"sort_elements",
Expand Down
1 change: 0 additions & 1 deletion ufl/algorithms/apply_restrictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#
# SPDX-License-Identifier: LGPL-3.0-or-later


from ufl.algorithms.map_integrands import map_integrand_dags
from ufl.classes import Restricted
from ufl.corealg.map_dag import map_expr_dag
Expand Down
1 change: 1 addition & 0 deletions ufl/algorithms/check_arities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check arities."""

from itertools import chain

from ufl.classes import Argument, Zero
Expand Down
1 change: 0 additions & 1 deletion ufl/compound_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#
# Modified by Anders Logg, 2009-2010


from ufl.constantvalue import Zero, zero
from ufl.core.multiindex import Index, indices
from ufl.operators import sqrt
Expand Down
1 change: 0 additions & 1 deletion ufl/core/multiindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#
# Modified by Massimiliano Leoni, 2016.


from ufl.core.terminal import Terminal
from ufl.core.ufl_type import ufl_type
from ufl.utils.counted import Counted
Expand Down
2 changes: 1 addition & 1 deletion ufl/formatting/ufl2unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class UC:
left_double_angled_bracket = "⟪"
right_double_angled_bracket = "⟫"

combining_right_arrow_above = "\u20D7"
combining_right_arrow_above = "\u20d7"
combining_overline = "\u0305"


Expand Down
1 change: 0 additions & 1 deletion ufl/indexsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#
# SPDX-License-Identifier: LGPL-3.0-or-later


from ufl.constantvalue import Zero
from ufl.core.expr import Expr, ufl_err_str
from ufl.core.multiindex import MultiIndex
Expand Down

0 comments on commit 652b0d8

Please sign in to comment.