From 1583ec66fdefcf8e7b1b674fd50f48ec84f0d910 Mon Sep 17 00:00:00 2001 From: Pranab Das <31024886+pranabdas@users.noreply.github.com> Date: Fri, 24 May 2024 15:46:44 +0800 Subject: [PATCH] minor formatting changes to export_itx --- src/export_itx.py | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/export_itx.py b/src/export_itx.py index 636fc75..ae6f08c 100644 --- a/src/export_itx.py +++ b/src/export_itx.py @@ -78,9 +78,8 @@ def export_itx( fid.write("END\n") fid.write( ( - 'X SetScale/P x {0}, {1}, "{2}", {3}; SetScale/P y {4},\ - {5}, "{6}", {7}; SetScale d 0,0,"", {8}\n'.format( - x_offset, x_delta, x_label, wave_name, y_offset, y_delta, y_label, wave_name, wave_name + 'X SetScale/P x {0}, {1}, "{2}", {3}; SetScale/P y {4}, {5}, "{6}", {3}; SetScale d 0,0,"", {3}\n'.format( + x_offset, x_delta, x_label, wave_name, y_offset, y_delta, y_label ) ) ) @@ -104,22 +103,8 @@ def export_itx( fid.write("END\n") fid.write( ( - 'X SetScale/P x {0}, {1}, "{2}", {3}; SetScale/P y {4},\ - {5}, "{6}", {7}; SetScale/P z {8}, {9}, "{10}", {11}; \ - SetScale d 0,0,"", {12}\n'.format( - x_offset, - x_delta, - x_label, - wave_name, - y_offset, - y_delta, - y_label, - wave_name, - z_offset, - z_delta, - z_label, - wave_name, - wave_name, + 'X SetScale/P x {0}, {1}, "{2}", {3}; SetScale/P y {4}, {5}, "{6}", {3}; SetScale/P z {7}, {8}, "{9}", {3}; SetScale d 0,0,"", {3}\n'.format( + x_offset, x_delta, x_label, wave_name, y_offset, y_delta, y_label, z_offset, z_delta, z_label ) ) )