Skip to content

Commit 069f078

Browse files
authoredMar 15, 2025··
ruff fix (#358)
1 parent 6a67124 commit 069f078

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎ufl/algorithms/formtransformations.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Modified by Marie E. Rognes, 2010.
1212
# Modified by Jørgen S. Dokken, 2025.
1313

14+
import logging
1415
import warnings
15-
from logging import debug
1616

1717
from ufl.algebra import Conj
1818
from ufl.algorithms.formsplitter import extract_blocks
@@ -28,6 +28,8 @@
2828
# All classes:
2929
from ufl.core.expr import ufl_err_str
3030

31+
logger = logging.getLogger("ufl")
32+
3133

3234
# FIXME: Don't use this below, it makes partextracter more expensive than necessary
3335
def _expr_has_terminal_types(expr, ufl_types):
@@ -445,7 +447,7 @@ def compute_form_action(form, coefficient):
445447
if coefficient is None:
446448
coefficient = Coefficient(fs)
447449
elif coefficient.ufl_function_space() != fs:
448-
debug("Computing action of form on a coefficient in a different function space.")
450+
logger.debug("Computing action of form on a coefficient in a different function space.")
449451
return replace(form, {u: coefficient})
450452

451453

0 commit comments

Comments
 (0)
Please sign in to comment.