From 1402d88c34106d5b3b8c31316dedfbdbc847c12d Mon Sep 17 00:00:00 2001 From: holl- Date: Mon, 23 Oct 2023 12:54:12 +0200 Subject: [PATCH] Fix debug detection in Tensor formatting --- phiml/math/_tensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phiml/math/_tensors.py b/phiml/math/_tensors.py index b2a839c2..f603aeaa 100644 --- a/phiml/math/_tensors.py +++ b/phiml/math/_tensors.py @@ -2268,7 +2268,7 @@ def check_is_printing(): import traceback, sys stack = traceback.extract_stack() for frame in stack: - if "_pydevd_bundle\\pydevd_xml.py" in frame.filename: + if "_pydevd_bundle\\pydevd_xml.py" in frame.filename or "_pydevd_bundle/pydevd_xml.py" in frame.filename: return False for frame in stack: if frame.line.strip().startswith('print('):