Skip to content

Commit 6aeb62c

Browse files
authored
ruff fixes (#755)
1 parent cbfc0f0 commit 6aeb62c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ffcx/codegeneration/definitions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def coefficient(
133133
end = begin + bs * (num_dofs - 1) + 1
134134

135135
if ttype == "zeros":
136-
logging.debug("Not expecting zero coefficients to get this far.")
136+
logger.debug("Not expecting zero coefficients to get this far.")
137137
return []
138138

139139
# For a constant coefficient we reference the dofs directly, so no definition needed
@@ -239,7 +239,7 @@ def spatial_coordinate(
239239
if self.integral_type in ufl.custom_integral_types:
240240
# FIXME: Jacobian may need adjustment for custom_integral_types
241241
if mt.local_derivatives:
242-
logging.exception("FIXME: Jacobian in custom integrals is not implemented.")
242+
logger.exception("FIXME: Jacobian in custom integrals is not implemented.")
243243
return []
244244
else:
245245
return self._define_coordinate_dofs_lincomb(mt, tabledata, quadrature_rule, access)

ffcx/codegeneration/symbols.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def entity(self, entity_type, restriction):
109109
elif entity_type == "vertex":
110110
return self.entity_local_index[0]
111111
else:
112-
logging.exception(f"Unknown entity_type {entity_type}")
112+
logger.exception(f"Unknown entity_type {entity_type}")
113113

114114
def argument_loop_index(self, iarg):
115115
"""Loop index for argument iarg."""

ffcx/ir/representationutils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def create_quadrature_points_and_weights(
8484
elif integral_type == "expression":
8585
pass
8686
else:
87-
logging.exception(f"Unknown integral type: {integral_type}")
87+
logger.exception(f"Unknown integral type: {integral_type}")
8888

8989
return pts, wts, tensor_factors
9090

0 commit comments

Comments
 (0)