Export code (added same string lenghth for each number)
This commit is contained in:
parent
08b0802d3f
commit
e8169286b9
@ -46,7 +46,8 @@ def main():
|
||||
raise ValueError
|
||||
|
||||
str_line = str_line + str_el + ' '
|
||||
bx_txt.writelines(str_line)
|
||||
str_line += '\n'
|
||||
bx_txt.write(str_line)
|
||||
bx_txt.close()
|
||||
|
||||
by_txt = open("output/step_50μm/By_step_50.txt", "w+")
|
||||
@ -68,8 +69,8 @@ def main():
|
||||
raise ValueError
|
||||
|
||||
str_line = str_line + str_el + ' '
|
||||
|
||||
by_txt.writelines(str_line)
|
||||
str_line += '\n'
|
||||
by_txt.write(str_line)
|
||||
by_txt.close()
|
||||
|
||||
bz_txt = open("output/step_50μm/Bz_step_50.txt", "w+")
|
||||
@ -90,9 +91,9 @@ def main():
|
||||
if len(str_el) != 8:
|
||||
raise ValueError
|
||||
|
||||
str_line = str_line + str_el + ' '
|
||||
|
||||
bz_txt.writelines(str_line)
|
||||
str_line += str_el + ' '
|
||||
str_line += '\n'
|
||||
bz_txt.write(str_line)
|
||||
bz_txt.close()
|
||||
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user