Skip to content
Snippets Groups Projects
Commit c0d18206 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Warnings: print kernel name

parent 1cf3a361
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ def warn_with_kernel(kernel, id, text, type=LoopyWarning):
% id)
from warnings import warn
warn(text, type)
warn("in kernel %s: %s" % (kernel.name, text), type, stacklevel=2)
warn = MovedFunctionDeprecationWrapper(warn_with_kernel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment