Skip to content

Commit

Permalink
minor formatting changes to export_itx
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed May 24, 2024
1 parent 84ddf21 commit 1583ec6
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions src/export_itx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
)
Expand All @@ -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
)
)
)
Expand Down

0 comments on commit 1583ec6

Please sign in to comment.