From 2eb7ea6aa647c7d9fe2c86fc6dafb95e9b14f57e Mon Sep 17 00:00:00 2001 From: GeekLogan Date: Sun, 10 Jan 2021 13:30:06 -0500 Subject: [PATCH] Changing format strings so that TP export is more efficient --- ngauge/TracingPoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngauge/TracingPoint.py b/ngauge/TracingPoint.py index db320f6..e1d8632 100644 --- a/ngauge/TracingPoint.py +++ b/ngauge/TracingPoint.py @@ -562,7 +562,7 @@ def to_swc(self, fname=None): memory[a] = i # Columns: id t x y z r pid - out.append("%d %d %f %f %f %f %d" % (i, a.t, a.x, a.y, a.z, a.r, parent)) + out.append("%d %d %g %g %g %g %d" % (i, a.t, a.x, a.y, a.z, a.r, parent)) i += 1 out = "\n".join(out)