Skip to content

Commit

Permalink
sprintf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Dec 1, 2023
1 parent dfc370e commit 10b9e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tao.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function BAGELS_2(lat, phi_start, phi_step, suffix="",outf="BAGELS.bmad", kick=1
else
knob_out = open(outf, "a")
end
println(knob_out, "BAGELS$(suffix)$(@sprintf("%0$(length(string(i)))", i)): group = {")
println(knob_out, "BAGELS$(suffix)$(@sprintf("%0$(length(string(i)))d", i)): group = {")

for coil in unique_coils
strength = 0.
Expand Down

0 comments on commit 10b9e8d

Please sign in to comment.