Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruff fixes #755

Merged
merged 1 commit into from
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ffcx/codegeneration/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def coefficient(
end = begin + bs * (num_dofs - 1) + 1

if ttype == "zeros":
logging.debug("Not expecting zero coefficients to get this far.")
logger.debug("Not expecting zero coefficients to get this far.")
return []

# For a constant coefficient we reference the dofs directly, so no definition needed
Expand Down Expand Up @@ -239,7 +239,7 @@ def spatial_coordinate(
if self.integral_type in ufl.custom_integral_types:
# FIXME: Jacobian may need adjustment for custom_integral_types
if mt.local_derivatives:
logging.exception("FIXME: Jacobian in custom integrals is not implemented.")
logger.exception("FIXME: Jacobian in custom integrals is not implemented.")
return []
else:
return self._define_coordinate_dofs_lincomb(mt, tabledata, quadrature_rule, access)
Expand Down
2 changes: 1 addition & 1 deletion ffcx/codegeneration/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def entity(self, entity_type, restriction):
elif entity_type == "vertex":
return self.entity_local_index[0]
else:
logging.exception(f"Unknown entity_type {entity_type}")
logger.exception(f"Unknown entity_type {entity_type}")

def argument_loop_index(self, iarg):
"""Loop index for argument iarg."""
Expand Down
2 changes: 1 addition & 1 deletion ffcx/ir/representationutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_quadrature_points_and_weights(
elif integral_type == "expression":
pass
else:
logging.exception(f"Unknown integral type: {integral_type}")
logger.exception(f"Unknown integral type: {integral_type}")

return pts, wts, tensor_factors

Expand Down