From 9b1721af954e74d24ca92e5393f24feaaec28b8e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 25 Mar 2025 16:19:57 +0100 Subject: export_pseudo_dref: printing to the proper file handle may help --- lib/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.py b/lib/cli.py index 419ddcd..b2358ec 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -343,9 +343,9 @@ def export_pseudo_dref(dref_file, dref, precision=None): if type(v) is tuple: v = v[0] if type(v) in (float, np.float64) and precision is not None: - print("\\def\\" + k + "{" + f"{v:.{precision}f}" + "}") + print("\\def\\" + k + "{" + f"{v:.{precision}f}" + "}", file=f) else: - print("\\def\\" + k + "{" + str(v) + "}") + print("\\def\\" + k + "{" + str(v) + "}", file=f) def export_dataref(dref_file, dref, precision=None): -- cgit v1.2.3